17 #include <my_global.h>
23 int main (
int argc,
char **argv)
28 const char* query4=
"INSERT INTO federated.t1 SET Value=54";
29 const char* query5=
"INSERT INTO federated.t1 SET Value=55";
33 if (argc != 2 || !strcmp(argv[1],
"--help"))
35 fprintf(stderr,
"This program is a part of the MySQL test suite. "
36 "It is not intended to be executed directly by a user.\n");
41 if (!mysql_real_connect(
51 fprintf(stderr,
"Failed to connect to database: Error: %s\n",
55 printf(
"%s\n", mysql_error(&conn));
58 OK = mysql_real_query (&conn, query4, (uint) strlen(query4));
62 printf(
"%ld inserted\n",
63 (
long) mysql_insert_id(&conn));
65 OK = mysql_real_query (&conn, query5, (uint) strlen(query5));
69 printf(
"%ld inserted\n",
70 (
long) mysql_insert_id(&conn));