summaryrefslogtreecommitdiffstats
path: root/app/sql/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/sql/connection.h')
-rw-r--r--app/sql/connection.h4
1 files changed, 2 insertions, 2 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,