Menu

#24 getDriverMajorVersion() & getDriverMiniorVersion failure

open
nobody
None
5
2013-01-28
2013-01-28
No

Both methods check that length of this->_getStringInfo(SQL_DRIVER_ODBC_VER); is exactly 5 characters.

Some drivers may return build information appended, thus version string length is more than 5 characters.

Better to check that:
1) for getDriverMajorVersion() length is more or equal to 2
2) for getDriverMinorVersion() length is more or equal to 5

Discussion


Log in to post a comment.