summaryrefslogtreecommitdiffstats
path: root/app/sql
diff options
context:
space:
mode:
Diffstat (limited to 'app/sql')
-rw-r--r--app/sql/connection.h4
-rw-r--r--app/sql/statement.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/sql/connection.h b/app/sql/connection.h
index 52587ac..6927c89 100644
--- a/app/sql/connection.h
+++ b/app/sql/connection.h
@@ -224,8 +224,8 @@ class Connection {
// you having to manage unique names. See StatementID above for more.
//
// Example:
- // sql::Statement stmt = connection_.GetCachedStatement(
- // SQL_FROM_HERE, "SELECT * FROM foo");
+ // sql::Statement stmt(connection_.GetCachedStatement(
+ // SQL_FROM_HERE, "SELECT * FROM foo"));
// if (!stmt)
// return false; // Error creating statement.
scoped_refptr<StatementRef> GetCachedStatement(const StatementID& id,
diff --git a/app/sql/statement.h b/app/sql/statement.h
index 92495c7..22682c8 100644
--- a/app/sql/statement.h
+++ b/app/sql/statement.h
@@ -25,7 +25,7 @@ enum ColType {
};
// Normal usage:
-// sql::Statement s = connection_.GetUniqueStatement(...);
+// sql::Statement s(connection_.GetUniqueStatement(...));
// if (!s) // You should check for errors before using the statement.
// return false;
//