** Print a schema statement. Part of MODE_Semi and MODE_Pretty output. ** ** This routine converts some CREATE TABLE statements for shadow tables ** in FTS3/4/5 into CREATE TABLE IF NOT EXISTS statements. */
| 11961 | ** in FTS3/4/5 into CREATE TABLE IF NOT EXISTS statements. |
| 11962 | */ |
| 11963 | static void printSchemaLine(FILE *out, const char *z, const char *zTail){ |
| 11964 | if( z==0 ) return; |
| 11965 | if( zTail==0 ) return; |
| 11966 | if( sqlite3_strglob("CREATE TABLE ['\"]*", z)==0 ){ |
| 11967 | utf8_printf(out, "CREATE TABLE IF NOT EXISTS %s%s", z+13, zTail); |
| 11968 | }else{ |
| 11969 | utf8_printf(out, "%s%s", z, zTail); |
| 11970 | } |
| 11971 | } |
| 11972 | static void printSchemaLineN(FILE *out, char *z, int n, const char *zTail){ |
| 11973 | char c = z[n]; |
| 11974 | z[n] = 0; |
no test coverage detected