Skip to content

Commit 43e2e2c

Browse files
committed
Using mysql_real_query instead of mysql_query
1 parent 7475de6 commit 43e2e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ node_db::Result* node_db_mysql::Connection::query(const std::string& query) cons
7979
throw node_db::Exception("Can't execute query without an opened connection");
8080
}
8181

82-
if (mysql_query(this->connection, query.c_str()) != 0) {
82+
if (mysql_real_query(this->connection, query.c_str(), query.length()) != 0) {
8383
throw node_db::Exception(mysql_error(this->connection));
8484
}
8585

0 commit comments

Comments
 (0)