Changeset 472
- Timestamp:
- 22/12/07 13:58:56 (12 months ago)
- Files:
-
- 1 modified
-
trunk/storage/storage_mysql.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/storage/storage_mysql.c
r238 r472 624 624 #endif 625 625 626 mysql_options(conn, MYSQL_SET_CHARSET_NAME, "utf8"); 627 626 628 /* connect with CLIENT_INTERACTIVE to get a (possibly) higher timeout value than default */ 627 629 if(mysql_real_connect(conn, host, user, pass, dbname, atoi(port), NULL, CLIENT_INTERACTIVE) == NULL) { … … 631 633 } 632 634 633 mysql_query(conn, "SET NAMES 'utf8'");634 635 635 /* Set reconnect flag to 1 (set to 0 by default from mysql 5 on) */ 636 636 conn->reconnect = 1; 637 637 638 data = (drvdata_t) malloc(sizeof(struct drvdata_st)); 639 memset(data, 0, sizeof(struct drvdata_st)); 638 data = (drvdata_t) calloc(1, sizeof(struct drvdata_st)); 640 639 641 640 data->conn = conn;
