sprintf(query,"insert into sev_version (version) values(2)");
sprintf(query,"insert into sev_version (version) values(%d)",sev_cVersion);
rc=mysql_query(m_con,query);
rc=mysql_query(m_con,query);
if(rc){
if(rc){
printf("In %s row %d:\n",__FILE__,__LINE__);
printf("In %s row %d:\n",__FILE__,__LINE__);
...
@@ -473,7 +473,10 @@ int sev_dbms_env::createSevVersion3Tables(void)
...
@@ -473,7 +473,10 @@ int sev_dbms_env::createSevVersion3Tables(void)
{
{
charquery[400];
charquery[400];
sprintf(query,"create table sev_stat (current_load float,medium_load float,datastore_msg_cnt int unsigned,dataget_msg_cnt int unsigned,items_msg_cnt int unsigned,eventstore_msg_cnt int unsigned);");