Update stopquery.c
This commit is contained in:
parent
7820ca2a9f
commit
f066c3ec03
|
@ -657,7 +657,6 @@ int sqConCleanupAsyncQuery(bool fetch) {
|
||||||
|
|
||||||
|
|
||||||
void sqRunAllCase(void) {
|
void sqRunAllCase(void) {
|
||||||
#if 1
|
|
||||||
sqStopSyncQuery(false);
|
sqStopSyncQuery(false);
|
||||||
sqStopSyncQuery(true);
|
sqStopSyncQuery(true);
|
||||||
sqStopAsyncQuery(false);
|
sqStopAsyncQuery(false);
|
||||||
|
@ -678,33 +677,33 @@ void sqRunAllCase(void) {
|
||||||
sqConCloseAsyncQuery(false);
|
sqConCloseAsyncQuery(false);
|
||||||
sqConCloseAsyncQuery(true);
|
sqConCloseAsyncQuery(true);
|
||||||
|
|
||||||
|
|
||||||
sqKillSyncQuery(false);
|
sqKillSyncQuery(false);
|
||||||
sqKillSyncQuery(true);
|
sqKillSyncQuery(true);
|
||||||
sqKillAsyncQuery(false);
|
sqKillAsyncQuery(false);
|
||||||
sqKillAsyncQuery(true);
|
sqKillAsyncQuery(true);
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/*
|
||||||
sqConKillSyncQuery(false);
|
sqConKillSyncQuery(false);
|
||||||
sqConKillSyncQuery(true);
|
sqConKillSyncQuery(true);
|
||||||
sqConKillAsyncQuery(false);
|
sqConKillAsyncQuery(false);
|
||||||
sqConKillAsyncQuery(true);
|
sqConKillAsyncQuery(true);
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
sqConCleanupSyncQuery(false);
|
sqConCleanupSyncQuery(false);
|
||||||
sqConCleanupSyncQuery(true);
|
sqConCleanupSyncQuery(true);
|
||||||
sqConCleanupAsyncQuery(false);
|
sqConCleanupAsyncQuery(false);
|
||||||
sqConCleanupAsyncQuery(true);
|
sqConCleanupAsyncQuery(true);
|
||||||
*/
|
*/
|
||||||
|
#endif
|
||||||
|
|
||||||
int32_t l = 5;
|
int32_t l = 5;
|
||||||
while (l) {
|
while (l) {
|
||||||
printf("%d\n", l--);
|
printf("%d\n", l--);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
printf("test done\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
if (argc != 4) {
|
if (argc != 4) {
|
||||||
printf("usage: %s server-ip dbname tablename\n", argv[0]);
|
printf("usage: %s server-ip dbname tablename\n", argv[0]);
|
||||||
|
|
Loading…
Reference in New Issue