We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7475de6 commit 43e2e2cCopy full SHA for 43e2e2c
src/connection.cc
@@ -79,7 +79,7 @@ node_db::Result* node_db_mysql::Connection::query(const std::string& query) cons
79
throw node_db::Exception("Can't execute query without an opened connection");
80
}
81
82
- if (mysql_query(this->connection, query.c_str()) != 0) {
+ if (mysql_real_query(this->connection, query.c_str(), query.length()) != 0) {
83
throw node_db::Exception(mysql_error(this->connection));
84
85
0 commit comments