conntest3.c
来自「b树实现源码,linux和unix下运行,速度快,极好用」· C语言 代码 · 共 25 行
C
25 行
//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 + =
减小字号Ctrl + -
显示快捷键?