beresp = 'R';
else
{
- beresp = SOCK_get_char(sock);
+ beresp = SOCK_get_id(sock);
mylog("auth got '%c'\n", beresp);
if (PROTOCOL_74(ci))
{
if (beresp != 'E' || startPacketReceived)
{
- leng = SOCK_get_int(sock, 4);
+ leng = SOCK_get_response_length(sock);
inolog("leng=%d\n", leng);
}
else
handle_notice_message(self, notice, sizeof(notice), self->sqlstate, "CC_connect", NULL);
break;
default:
- CC_set_error(self, CONN_INVALID_AUTHENTICATION, "Unexpected protocol character during authentication", func);
+ snprintf(notice, sizeof(notice), "Unexpected protocol character='%c' during authentication", beresp);
+ CC_set_error(self, CONN_INVALID_AUTHENTICATION, notice, func);
return 0;
}
*
* p = CC_get_database(conn);
*/
- p = NULL_CATALOG_NAME;
+ p = CurrCatString(conn);
break;
case SQL_DBMS_NAME: /* ODBC 1.0 */
#define POSTGRESDRIVERVERSION "08.02.0007"
#define POSTGRES_RESOURCE_VERSION "08.02.0007\0"
-#define PG_DRVFILE_VERSION 8,2,0,07
+#define PG_DRVFILE_VERSION 8,2,0,07
#endif