Browse Source

sql_updates.sql updated to put semi colon at end of query

Added semi colon to end of query to make it easy to source in to other DB's
Image 4 years ago
parent
commit
d9c52bbf64
1 changed files with 1 additions and 0 deletions
  1. 1 0
      EQ2/source/common/database.cpp

+ 1 - 0
EQ2/source/common/database.cpp

@@ -233,6 +233,7 @@ MYSQL_RES* Query::RunQuery2(string in_query, QUERY_TYPE type){
 				FILE* pFile;
 				pFile = fopen("sql_updates.sql", "a+");
 				fwrite(query.c_str(), 1, query.length(), pFile);
+				fwrite(";", sizeof(char), 1, pFile);
 				fwrite("\n", sizeof(char), 1, pFile);
 				fclose(pFile);
 			}