summaryrefslogtreecommitdiff
path: root/src/common/sql.h
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-05 21:12:46 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-05 21:12:46 +0000
commit9fdee1294903724b3fb035fc700313942ce65b9f (patch)
tree3738f8d7c836eb775b3545fcbd686950519a1842 /src/common/sql.h
parentce9b9e74f648f3dd52e4161d3183612ecd002f80 (diff)
downloadhercules-9fdee1294903724b3fb035fc700313942ce65b9f.tar.gz
hercules-9fdee1294903724b3fb035fc700313942ce65b9f.tar.bz2
hercules-9fdee1294903724b3fb035fc700313942ce65b9f.tar.xz
hercules-9fdee1294903724b3fb035fc700313942ce65b9f.zip
- Added SQL_INNODB switch for databases running under InnoDB (where INSERT DELAYED would break log table support)
- Uncommenting this line will result in all log tables dropping use of delayed mySQL insertions git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15010 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/sql.h')
-rw-r--r--src/common/sql.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/sql.h b/src/common/sql.h
index 5b318ab4d..898e2c778 100644
--- a/src/common/sql.h
+++ b/src/common/sql.h
@@ -14,7 +14,10 @@
#define SQL_SUCCESS 0
#define SQL_NO_DATA 100
-
+// macro definition to determine whether the mySQL engine is running on InnoDB (rather than MyISAM)
+// uncomment this line if the your mySQL tables have been changed to run on InnoDB
+// this macro will adjust how logs are recorded in the database to accommodate the change
+//#define SQL_INNODB
/// Data type identifier.
/// String, enum and blob data types need the buffer length specified.