aboutsummaryrefslogtreecommitdiff
path: root/tests/basic/driver.c
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-11-02 23:11:29 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-11-21 13:51:37 +0300
commitb1471ebbe9db90c472ff356bea6a7c8aedb45db9 (patch)
treea3494b3c2ca9a3529588c4da6e52d9040722a404 /tests/basic/driver.c
parent4bce3c574df293415c7b2f45b9c2951262fe3412 (diff)
Add implementation
Diffstat (limited to 'tests/basic/driver.c')
-rw-r--r--tests/basic/driver.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/basic/driver.c b/tests/basic/driver.c
new file mode 100644
index 0000000..267f206
--- /dev/null
+++ b/tests/basic/driver.c
@@ -0,0 +1,23 @@
+/*
+ * file : tests/basic/driver.c
+ * copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC
+ * license : GPLv2 with FOSS License Exception; see accompanying COPYING file
+ */
+
+#include <stdio.h>
+
+#include <mysql/mysql.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;
+}