Differences From:
File
src/tkt.c
part of check-in
[31e94c0a04]
- Get "configuration push" working. Fix bugs in concealed-field processing
of tickets.
by
drh on
2008-10-25 20:43:28.
[view]
To:
File
src/tkt.c
part of check-in
[2664476fbc]
- Make sure the tkt_uuid and tkt_datetime TH1 variables are initialized on
a ticket display, even if no matching ticket is found.
by
drh on
2008-11-09 13:22:41.
[view]
@@ -138,13 +138,19 @@
}
}else{
db_finalize(&q);
db_prepare(&q, "PRAGMA table_info(ticket)");
+ if( Th_Fetch("tkt_uuid",&size)==0 ){
+ Th_Store("tkt_uuid",zName);
+ }
while( db_step(&q)==SQLITE_ROW ){
const char *zField = db_column_text(&q, 1);
if( Th_Fetch(zField, &size)==0 ){
Th_Store(zField, "");
}
+ }
+ if( Th_Fetch("tkt_datetime",&size)==0 ){
+ Th_Store("tkt_datetime","");
}
}
db_finalize(&q);
}