Changeset 786
- Timestamp:
- Jul 17, 2016, 2:06:30 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/sqlapi.c
r785 r786 252 252 map *sid=getMapFromMaps(conf,"lenv","usid"); 253 253 map *schema=getMapFromMaps(conf,"database","schema"); 254 char *sqlQuery=(char*)malloc((strlen(schema->value)+flen+strlen(sid->value)+5 1+1)*sizeof(char));254 char *sqlQuery=(char*)malloc((strlen(schema->value)+flen+strlen(sid->value)+57+1)*sizeof(char)); 255 255 sprintf(sqlQuery,"INSERT INTO %s.responses (content,uuid) VALUES ($$%s$$,$$%s$$);",schema->value,tmps,sid->value); 256 256 execSql(conf,sqlQuery);
Note: See TracChangeset
for help on using the changeset viewer.