From 7db58a9a70d8d2799525cf9eee94b826eaea198b Mon Sep 17 00:00:00 2001 From: Blue Date: Fri, 1 May 2009 21:37:34 +0200 Subject: Mysql backend, lua and NPC handler Fix for mysql backend (again) Lua modification for integer and string ask with NPC, and closing fix. --- src/dal/mysqldataprovider.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/dal') diff --git a/src/dal/mysqldataprovider.cpp b/src/dal/mysqldataprovider.cpp index e7111a59..008ffda2 100644 --- a/src/dal/mysqldataprovider.cpp +++ b/src/dal/mysqldataprovider.cpp @@ -113,14 +113,14 @@ MySqlDataProvider::connect() << "' as user, and '" << dbName << "' as database."); // actually establish the connection. - if (!mysql_real_connect(mDb, // handle to the connection - hostname.c_str(), // hostname - username.c_str(), // username - password.c_str(), // password - dbName.c_str(), // database name - tcpPort, // tcp port - NULL, // socket, currently not used - 0)) // client flags + if (!mysql_real_connect(mDb, // handle to the connection + hostname.c_str(), // hostname + username.c_str(), // username + password.c_str(), // password + dbName.c_str(), // database name + tcpPort, // tcp port + NULL, // socket, currently not used + CLIENT_FOUND_ROWS)) // client flags { std::string msg(mysql_error(mDb)); mysql_close(mDb); -- cgit v1.2.3-60-g2f50