fix compile on Windows for bug25714.c

---
fix compile on Windows for bug25714.c
parent c42837a2
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h>
#include <my_sys.h>
#include <mysql.h> #include <mysql.h>
#include <string.h> #include <m_string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h> #include <assert.h>
int main (int argc, char **argv) int main (int argc, char **argv)
...@@ -27,6 +27,8 @@ int main (int argc, char **argv) ...@@ -27,6 +27,8 @@ int main (int argc, char **argv)
const char* query4= "INSERT INTO federated.t1 SET Value=54"; const char* query4= "INSERT INTO federated.t1 SET Value=54";
const char* query5= "INSERT INTO federated.t1 SET Value=55"; const char* query5= "INSERT INTO federated.t1 SET Value=55";
MY_INIT(argv[0]);
if (argc != 2) if (argc != 2)
return -1; return -1;
...@@ -63,6 +65,7 @@ int main (int argc, char **argv) ...@@ -63,6 +65,7 @@ int main (int argc, char **argv)
(long) mysql_insert_id(&conn)); (long) mysql_insert_id(&conn));
mysql_close(&conn); mysql_close(&conn);
my_end(0);
return 0; return 0;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment