Skip to content

Commit

Permalink
MS: fixed Sybase test run problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostya Lutsenko committed Nov 11, 2014
1 parent c9c3952 commit c7bafc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/ODBC/testsuite/src/ODBCTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ bool ODBCTest::canConnect(const std::string& driver,
}
}

if (_drivers.end() == itDrv && (driver[0] != '/'))
if ((_drivers.end() == itDrv) && (driver.length() != 0) && (driver[0] != '/'))
{
dsn = "";
uid = "";
Expand Down

0 comments on commit c7bafc3

Please sign in to comment.