Home | History | Annotate | Download | only in orig

Lines Matching full:testctrl

6399   if( c=='t' && n>=8 && strncmp(azArg[0], "testctrl", n)==0 && nArg>=2 ){
6421 int testctrl = -1;
6426 /* convert testctrl text option to value. allow any unique prefix
6431 if( testctrl<0 ){
6432 testctrl = aCtrl[i].ctrlCode;
6435 testctrl = -1;
6440 if( testctrl<0 ) testctrl = (int)integerValue(azArg[1]);
6441 if( (testctrl<SQLITE_TESTCTRL_FIRST) || (testctrl>SQLITE_TESTCTRL_LAST) ){
6442 utf8_printf(stderr,"Error: invalid testctrl option: %s\n", azArg[1]);
6444 switch(testctrl){
6451 rc2 = sqlite3_test_control(testctrl, p->db, opt);
6454 utf8_printf(stderr,"Error: testctrl %s takes a single int option\n",
6465 rc2 = sqlite3_test_control(testctrl);
6468 utf8_printf(stderr,"Error: testctrl %s takes no options\n",
6477 rc2 = sqlite3_test_control(testctrl, opt);
6480 utf8_printf(stderr,"Error: testctrl %s takes a single unsigned"
6491 rc2 = sqlite3_test_control(testctrl, opt);
6494 utf8_printf(stderr,"Error: testctrl %s takes a single int option\n",
6504 rc2 = sqlite3_test_control(testctrl, opt);
6508 "Error: testctrl %s takes a single char * option\n",
6516 rc2 = sqlite3_test_control(testctrl, p->db,
6522 raw_printf(stderr,"Usage: .testctrl imposter dbName onoff tnum\n");
6532 "Error: CLI support for testctrl %s not implemented\n",