summaryrefslogtreecommitdiffstats
path: root/src/dal
diff options
context:
space:
mode:
authorBlue <bluesansdouze@gmail.com>2009-05-01 21:37:34 +0200
committerJared Adams <jaxad0127@gmail.com>2009-05-01 14:25:35 -0600
commit7db58a9a70d8d2799525cf9eee94b826eaea198b (patch)
tree98e90cd9a9274b1def35512dd7d67bbf7fb4b295 /src/dal
parent43e99491a76bb85faf60c004e84b6c2b14cf41e7 (diff)
downloadmanaserv-7db58a9a70d8d2799525cf9eee94b826eaea198b.tar.gz
manaserv-7db58a9a70d8d2799525cf9eee94b826eaea198b.tar.xz
manaserv-7db58a9a70d8d2799525cf9eee94b826eaea198b.zip
Mysql backend, lua and NPC handler
Fix for mysql backend (again) Lua modification for integer and string ask with NPC, and closing fix.
Diffstat (limited to 'src/dal')
-rw-r--r--src/dal/mysqldataprovider.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dal/mysqldataprovider.cpp b/src/dal/mysqldataprovider.cpp
index e7111a5..008ffda 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);