git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12e7be9
)
Set MYSQL_OPT_RECONNECT option only if client library knows it.
author
Zdeněk Salvet
<salvet@ics.muni.cz>
Wed, 29 Aug 2007 15:07:52 +0000
(15:07 +0000)
committer
Zdeněk Salvet
<salvet@ics.muni.cz>
Wed, 29 Aug 2007 15:07:52 +0000
(15:07 +0000)
org.glite.jp.primary/src/mysql.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.primary/src/mysql.c
b/org.glite.jp.primary/src/mysql.c
index
b798352
..
82e5747
100644
(file)
--- a/
org.glite.jp.primary/src/mysql.c
+++ b/
org.glite.jp.primary/src/mysql.c
@@
-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;