mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Report SQLAllocEnv error in ODBC unit test
This commit is contained in:
parent
aeee354405
commit
e6a09b8bd5
@ -59,6 +59,10 @@ int main(int argc, char **argv)
|
||||
int i;
|
||||
|
||||
retcode = SQLAllocEnv(&henv);
|
||||
if (retcode != SQL_SUCCESS) {
|
||||
fprintf(stderr,"SQLAllocEnv failed: %d\n", retcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (SQLAllocConnect(henv, &hdbc) != SQL_SUCCESS)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user