1
[csql.git] / test / dbapi / Connection / conntest5.c
blob57364840307eedb083dbb0fd031abd2478a99e2f
1 //commit a transaction without starting it and it should fail
3 #include<CSql.h>
4 int main()
6 Connection conn;
7 DbRetVal rv=conn.open("root","manager");
8 if(rv!=OK) return 1;
9 rv=conn.commit();
10 if(rv==OK)
12 printf("test script failed");
13 return 2;
15 printf("Test script passed return value %d\n",rv);
16 return 0;