Changeset 11678
- Timestamp:
- Feb 6, 2007, 3:44:54 PM (19 years ago)
- Location:
- trunk/glueforge/templates/psdb
- Files:
-
- 5 edited
-
alloc_c.tt (modified) (1 diff)
-
dbcleanup_c.tt (modified) (1 diff)
-
dbsetup_c.tt (modified) (1 diff)
-
deleteobject.tt (modified) (1 diff)
-
deleterowobjects.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/glueforge/templates/psdb/alloc_c.tt
r9029 r11678 26 26 27 27 [% FOREACH item = table.columns -%] 28 [% IF item.type == "S32" or item.type == "F32" or item.type == "F64" or item.type == "BOOL" -%] 28 [% IF item.type == "U8" 29 or item.type == "U16" 30 or item.type == "U32" 31 or item.type == "U64" 32 or item.type == "S8" 33 or item.type == "S16" 34 or item.type == "S32" 35 or item.type == "S64" 36 or item.type == "F32" 37 or item.type == "F64" 38 or item.type == "BOOL" 39 -%] 29 40 if (!object->[% item.name %] == [% item.test %]) { 30 41 [% ELSIF item.type == "STR" -%] -
trunk/glueforge/templates/psdb/dbcleanup_c.tt
r5950 r11678 6 6 psDB *dbh; 7 7 8 dbh = psDBInit("localhost", "test", NULL, "test" );8 dbh = psDBInit("localhost", "test", NULL, "test", 0); 9 9 if (!dbh) { 10 10 exit(EXIT_FAILURE); -
trunk/glueforge/templates/psdb/dbsetup_c.tt
r5950 r11678 7 7 psDB *dbh; 8 8 9 dbh = psDBInit("localhost", "test", NULL, "test" );9 dbh = psDBInit("localhost", "test", NULL, "test", 0); 10 10 if (!dbh) { 11 11 exit(EXIT_FAILURE); -
trunk/glueforge/templates/psdb/deleteobject.tt
r8263 r11678 3 3 psMetadata *where = [% table.namespace %]MetadataFromObject(object); 4 4 long long count = psDBDeleteRows(dbh, [% table.namespace FILTER upper %]_TABLE_NAME, where, 0); 5 psFree(where) 5 psFree(where); 6 6 if (count < 0) { 7 7 psError(PS_ERR_UNKNOWN, true, "failed to delete row from [% table.namespace %]"); -
trunk/glueforge/templates/psdb/deleterowobjects.tt
r6160 r11678 7 7 psMetadata *where = [% table.namespace %]MetadataFromObject(object); 8 8 long long count = psDBDeleteRows(dbh, [% table.namespace FILTER upper %]_TABLE_NAME, where, limit); 9 psFree(where) 9 psFree(where); 10 10 if (count < 0) { 11 11 psError(PS_ERR_UNKNOWN, true, "failed to delete row from [% table.namespace %]");
Note:
See TracChangeset
for help on using the changeset viewer.
