Re: SQLGetConnectAttr when called before connection
Nick Gorham <[email protected]>
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <[email protected]> |
G, Hemanth Kumar wrote: > > Hi Nick, > > SQLGetConnectAttr with SQL_ATTR_PACKET_SIZE (which requires an open > connection), when called before connecting, must return 08003 > (Connection does not exist.) > > Returns SQL_SUCCESS instead. > > SQLGetConnectAttr(hdbc, SQL_ATTR_PACKET_SIZE, &sdwValue, 0, NULL); > (when called before the connection is open) > Expected : 08003 (Connection does not exist.)) > Received : SQL_SUCCESS > > Please verify. > > Thanks > Hemanth. > Hi, Just checked this with the MS driver manager, it returns SQL_SUCCESS. I would have thought that this was a attribute that should be set before connecting, as most drivers have to establish this in the first part of the connection process, and can't change after the connection is established. -- Nick _______________________________________________ unixODBC-dev mailing list [email protected] http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev