** This is the callback routine from sqlite3_exec() that appends all ** output onto the end of a ShellText object. */
| 17815 | ** output onto the end of a ShellText object. |
| 17816 | */ |
| 17817 | static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ |
| 17818 | ShellText *p = (ShellText*)pArg; |
| 17819 | int i; |
| 17820 | UNUSED_PARAMETER(az); |
| 17821 | if( azArg==0 ) return 0; |
| 17822 | if( p->n ) appendText(p, "|", 0); |
| 17823 | for(i=0; i<nArg; i++){ |
| 17824 | if( i ) appendText(p, ",", 0); |
| 17825 | if( azArg[i] ) appendText(p, azArg[i], 0); |
| 17826 | } |
| 17827 | return 0; |
| 17828 | } |
| 17829 | |
| 17830 | /* |
| 17831 | ** Generate an appropriate SELFTEST table in the main database. |
nothing calls this directly
no test coverage detected