📄 conntest3.c
字号:
//Open connection twice using the same object without closing the connection inbetween.// Is should fail.#include<CSql.h>int main(){ Connection conn; DbRetVal rv1 = conn.open("root", "manager"); if (rv1!= OK) { printf("Unable to open the database"); return 1; } DbRetVal rv2 = conn.open("root", "manager"); if(rv2==OK) { printf("Test failed"); return 2; } printf("Opening connection twice w/o closing inbetween passed return value %d \n",rv1); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -