Report SQLAllocEnv error in ODBC unit test

This commit is contained in:
Evan Miller 2020-12-29 09:25:55 -05:00
parent aeee354405
commit e6a09b8bd5

View File

@ -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)
{