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