Set MYSQL_OPT_RECONNECT option only if client library knows it.
authorZdeněk Salvet <salvet@ics.muni.cz>
Wed, 29 Aug 2007 15:07:52 +0000 (15:07 +0000)
committerZdeněk Salvet <salvet@ics.muni.cz>
Wed, 29 Aug 2007 15:07:52 +0000 (15:07 +0000)
org.glite.jp.primary/src/mysql.c

index b798352..82e5747 100644 (file)
@@ -58,7 +58,9 @@ int glite_jp_db_connect(glite_jp_context_t ctx,char *cs)
        }
 
        mysql_options(ctx->dbhandle, MYSQL_READ_DEFAULT_FILE, "my");
+#ifdef MYSQL_OPT_RECONNECT
        mysql_options(ctx->dbhandle, MYSQL_OPT_RECONNECT, &reconnect);
+#endif
 
        host = user = pw = db = NULL;