Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Made detectSchemaProblem function and aSchemaTable array static. Ticket [6f8b0c5855]. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
c6f22f3e38018246a2add1a509aa6c5c |
User & Date: | shane 2009-10-21 13:53:58.000 |
References
2009-10-21
| ||
13:50 | • Fixed ticket [6f8b0c5855]: Some minor genfkey fixups plus 3 other changes (artifact: 3466fb4d1d user: shane) | |
Context
2009-10-21
| ||
14:11 | Modified shell to call output_html_string() for header values in .mode html. Updated output_html_string() to support the 5 basic HTML entities (<,>,&,',"). Ticket [dc3a6e5b31]. (check-in: c8815fcd88 user: shane tags: trunk) | |
13:53 | Made detectSchemaProblem function and aSchemaTable array static. Ticket [6f8b0c5855]. (check-in: c6f22f3e38 user: shane tags: trunk) | |
03:56 | For the shell, changed the output of the errors on lines 2910 and 2914 to goto stderr. I left the timer values going to stdout as all of the other interactive shell commands (startup banner, help, etc.) go to stdout and I felt this was more consistent. Ticket [43db771bb2]. (check-in: 8a8eeb0c5a user: shane tags: trunk) | |
Changes
Changes to src/shell.c.
︙ | ︙ | |||
270 271 272 273 274 275 276 | "CREATE TABLE x(" \ "database," /* Name of database (i.e. main, temp etc.) */ \ "triggername," /* Name of trigger */ \ "dummy" /* Unused */ \ ")" typedef struct SchemaTable SchemaTable; | | | 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | "CREATE TABLE x(" \ "database," /* Name of database (i.e. main, temp etc.) */ \ "triggername," /* Name of trigger */ \ "dummy" /* Unused */ \ ")" typedef struct SchemaTable SchemaTable; static struct SchemaTable { const char *zName; const char *zObject; const char *zPragma; const char *zSchema; } aSchemaTable[] = { { "table_info", "table", "PRAGMA %Q.table_info(%Q)", SCHEMA }, { "foreign_key_list", "table", "PRAGMA %Q.foreign_key_list(%Q)", SCHEMA2 }, |
︙ | ︙ | |||
727 728 729 730 731 732 733 | static int invokeCallback(void *p, int nArg, char **azArg, char **azCol){ GenfkeyCb *pCb = (GenfkeyCb *)p; UNUSED_PARAMETER(nArg); UNUSED_PARAMETER(azCol); return pCb->xData(pCb->pCtx, pCb->eType, azArg[0]); } | | | 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 | static int invokeCallback(void *p, int nArg, char **azArg, char **azCol){ GenfkeyCb *pCb = (GenfkeyCb *)p; UNUSED_PARAMETER(nArg); UNUSED_PARAMETER(azCol); return pCb->xData(pCb->pCtx, pCb->eType, azArg[0]); } static int detectSchemaProblem( sqlite3 *db, /* Database connection */ const char *zMessage, /* English language error message */ const char *zSql, /* SQL statement to run */ GenfkeyCb *pCb ){ sqlite3_stmt *pStmt; int rc; |
︙ | ︙ |