aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/c_src
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-03-09 15:42:59 +0100
committerMicael Karlberg <[email protected]>2011-03-09 15:42:59 +0100
commitf8aac645c1c74626049b3a30eeedb6339cd43e2c (patch)
treefcda8e85564df7a84808c77e58e893d943a298a9 /lib/odbc/c_src
parent6c8f96a4a762e8bd9dd2ef758a5312791c064dd0 (diff)
parent62e056af8c4fa058faa5087614c6b837a07f06e6 (diff)
downloadotp-f8aac645c1c74626049b3a30eeedb6339cd43e2c.tar.gz
otp-f8aac645c1c74626049b3a30eeedb6339cd43e2c.tar.bz2
otp-f8aac645c1c74626049b3a30eeedb6339cd43e2c.zip
Merge branch 'dev' into bmk/snmp/support_ipv6_transport_address
Diffstat (limited to 'lib/odbc/c_src')
-rw-r--r--lib/odbc/c_src/odbcserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/odbc/c_src/odbcserver.c b/lib/odbc/c_src/odbcserver.c
index 077d78bfe5..d61ce940c3 100644
--- a/lib/odbc/c_src/odbcserver.c
+++ b/lib/odbc/c_src/odbcserver.c
@@ -1,7 +1,7 @@
/*
* %CopyrightBegin%
*
- * Copyright Ericsson AB 1999-2010. All Rights Reserved.
+ * Copyright Ericsson AB 1999-2011. All Rights Reserved.
*
* The contents of this file are subject to the Erlang Public License,
* Version 1.1, (the "License"); you may not use this file except in
@@ -472,7 +472,7 @@ static db_result_msg db_connect(byte *args, db_state *state)
&stringlength2ptr, SQL_DRIVER_NOPROMPT);
if (!sql_success(result)) {
- diagnos = get_diagnos(SQL_HANDLE_STMT, statement_handle(state));
+ diagnos = get_diagnos(SQL_HANDLE_DBC, connection_handle(state));
strcat((char *)diagnos.error_msg,
" Connection to database failed.");
msg = encode_error_message(diagnos.error_msg);