Append a single byte to z[] */
| 15132 | |
| 15133 | /* Append a single byte to z[] */ |
| 15134 | static void import_append_char(ImportCtx *p, int c){ |
| 15135 | if( p->n+1>=p->nAlloc ){ |
| 15136 | p->nAlloc += p->nAlloc + 100; |
| 15137 | p->z = sqlite3_realloc64(p->z, p->nAlloc); |
| 15138 | if( p->z==0 ) shell_out_of_memory(); |
| 15139 | } |
| 15140 | p->z[p->n++] = (char)c; |
| 15141 | } |
| 15142 | |
| 15143 | /* Read a single field of CSV text. Compatible with rfc4180 and extended |
| 15144 | ** with the option of having a separator other than ",". |
no test coverage detected