Ignore:
Timestamp:
Feb 8, 2018, 12:37:09 PM (7 years ago)
Author:
djay
Message:

Use correct declaration of the zo_DS variable in libzoo_service.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/sqlapi.c

    r863 r865  
    379379  char *sqlQuery=(char*)malloc((strlen(schema->value)+strlen(msg->value)+strlen(p->value)+strlen(sid->value)+64+1)*sizeof(char));
    380380  sprintf(sqlQuery,"UPDATE %s.services set status=$$%s$$,message=$$%s$$ where uuid=$$%s$$;",schema->value,p->value,msg->value,sid->value);
    381   if( zoo_ds_nb == 0 ){
     381  if( zoo_DS == NULL || zoo_DS[zoo_ds_nb-1]==NULL ){
    382382    init_sql(conf);
    383383    zoo_ds_nb++;
    384384  }
    385   execSql(conf,0,sqlQuery);
    386   cleanUpResultSet(conf,0);
    387   close_sql(conf,0);
    388   free(sqlQuery);
    389   setMapInMaps(conf,"lenv","ds_nb","0");
     385  execSql(conf,zoo_ds_nb-1,sqlQuery);
     386  cleanUpResultSet(conf,zoo_ds_nb-1);
     387  free(sqlQuery);
    390388  return 0;
    391389}
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png