[GB.DB.ODBC]
* BUG: Don't crash when trying to open a database if the host is void. git-svn-id: svn://localhost/gambas/trunk@7415 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
bc6493120e
commit
81a4022fba
@ -544,7 +544,7 @@ fflush(stderr);
|
||||
retcode = SQLSetConnectAttr(odbc->odbcHandle, SQL_ATTR_AUTOCOMMIT, (void *) SQL_AUTOCOMMIT_ON, SQL_NTS);
|
||||
|
||||
odbc->dsn_name = malloc(sizeof(char) * strlen(host));
|
||||
strcpy(odbc->dsn_name, desc->host);
|
||||
strcpy(odbc->dsn_name, host);
|
||||
|
||||
odbc->user_name = malloc(sizeof(char) * strlen(user));
|
||||
strcpy(odbc->user_name, user);
|
||||
|
Loading…
x
Reference in New Issue
Block a user