Lines Matching full:testctrl
3849 if( c=='t' && n>=8 && strncmp(azArg[0], "testctrl", n)==0 && nArg>=2 ){
3871 int testctrl = -1;
3876 /* convert testctrl text option to value. allow any unique prefix
3881 if( testctrl<0 ){
3882 testctrl = aCtrl[i].ctrlCode;
3885 testctrl = -1;
3890 if( testctrl<0 ) testctrl = (int)integerValue(azArg[1]);
3891 if( (testctrl<SQLITE_TESTCTRL_FIRST) || (testctrl>SQLITE_TESTCTRL_LAST) ){
3892 fprintf(stderr,"Error: invalid testctrl option: %s\n", azArg[1]);
3894 switch(testctrl){
3901 rc2 = sqlite3_test_control(testctrl, p->db, opt);
3904 fprintf(stderr,"Error: testctrl %s takes a single int option\n",
3915 rc2 = sqlite3_test_control(testctrl);
3918 fprintf(stderr,"Error: testctrl %s takes no options\n", azArg[1]);
3926 rc2 = sqlite3_test_control(testctrl, opt);
3929 fprintf(stderr,"Error: testctrl %s takes a single unsigned"
3940 rc2 = sqlite3_test_control(testctrl, opt);
3943 fprintf(stderr,"Error: testctrl %s takes a single int option\n",
3953 rc2 = sqlite3_test_control(testctrl, opt);
3956 fprintf(stderr,"Error: testctrl %s takes a single char * option\n",
3964 rc2 = sqlite3_test_control(testctrl, p->db,
3970 fprintf(stderr,"Usage: .testctrl imposter dbName onoff tnum\n");
3979 fprintf(stderr,"Error: CLI support for testctrl %s not implemented\n",