mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-03 12:27:42 +08:00
Update chassis-config.c
This commit is contained in:
parent
b6059212b5
commit
9508678eb6
@ -330,7 +330,7 @@ chassis_config_set_remote_options(chassis_config_t *conf, gchar* key, gchar* val
|
||||
g_warning("Cannot connect to mysql server.");
|
||||
return FALSE;
|
||||
}
|
||||
char sql[1024] = { 0 }, real_value[1024] = { 0 };
|
||||
gchar sql[1024] = { 0 }, real_value[1024] = { 0 };
|
||||
mysql_real_escape_string(conn, real_value, value, strlen(value));
|
||||
snprintf(sql, sizeof(sql),
|
||||
"REPLACE INTO %s.`settings`(option_key,option_value) VALUES ('%s', '%s')", conf->schema, key, real_value);
|
||||
|
Loading…
Reference in New Issue
Block a user