diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-05 10:30:58 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-05 17:53:59 +0300 |
commit | 72e7f011b29998d8a3e15eb5b381ef962af5fe5b (patch) | |
tree | 9fd87a0c6f545552849f466b20d3969a21e21e15 /libmysqlclient/tests/basic/driver.c | |
parent | 4e0bcdb33411afb02d60b72cbffa278344a572a6 (diff) |
Upgrade to 8.0.15
Diffstat (limited to 'libmysqlclient/tests/basic/driver.c')
-rw-r--r-- | libmysqlclient/tests/basic/driver.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libmysqlclient/tests/basic/driver.c b/libmysqlclient/tests/basic/driver.c new file mode 100644 index 0000000..a2ea0d6 --- /dev/null +++ b/libmysqlclient/tests/basic/driver.c @@ -0,0 +1,25 @@ +/* + * file : tests/basic/driver.c + * copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC + * license : GPLv2 with Universal FOSS Exception; see accompanying LICENSE file + */ + +#include <stdio.h> + +#include <mysql/mysql.h> +#include <mysql/errmsg.h> +#include <mysql/mysqld_error.h> + +int +main () +{ + if (mysql_library_init (0, NULL, NULL)) + { + fprintf (stderr, "failed to initialize\n"); + return 1; + } + + printf ("libmysqlclient version: %s\n", mysql_get_client_info ()); + mysql_library_end (); + return 0; +} |