Lines Matching refs:testctrl
3827 if( c=='t' && n>=8 && strncmp(azArg[0], "testctrl", n)==0 && nArg>=2 ){
3849 int testctrl = -1;
3854 /* convert testctrl text option to value. allow any unique prefix
3859 if( testctrl<0 ){
3860 testctrl = aCtrl[i].ctrlCode;
3863 testctrl = -1;
3868 if( testctrl<0 ) testctrl = (int)integerValue(azArg[1]);
3869 if( (testctrl<SQLITE_TESTCTRL_FIRST) || (testctrl>SQLITE_TESTCTRL_LAST) ){
3870 fprintf(stderr,"Error: invalid testctrl option: %s\n", azArg[1]);
3872 switch(testctrl){
3879 rc2 = sqlite3_test_control(testctrl, p->db, opt);
3882 fprintf(stderr,"Error: testctrl %s takes a single int option\n",
3893 rc2 = sqlite3_test_control(testctrl);
3896 fprintf(stderr,"Error: testctrl %s takes no options\n", azArg[1]);
3904 rc2 = sqlite3_test_control(testctrl, opt);
3907 fprintf(stderr,"Error: testctrl %s takes a single unsigned"
3918 rc2 = sqlite3_test_control(testctrl, opt);
3921 fprintf(stderr,"Error: testctrl %s takes a single int option\n",
3931 rc2 = sqlite3_test_control(testctrl, opt);
3934 fprintf(stderr,"Error: testctrl %s takes a single char * option\n",
3942 rc2 = sqlite3_test_control(testctrl, p->db,
3948 fprintf(stderr,"Usage: .testctrl imposter dbName onoff tnum\n");
3957 fprintf(stderr,"Error: CLI support for testctrl %s not implemented\n",