diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-01-07 15:03:54 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-01-07 15:03:54 +0000 |
commit | aa321ee4cde65425f7a0ec521c1a11245bd98123 (patch) | |
tree | b852a1450b171d1899084be9b90bb48791109cf9 /connectivity | |
parent | 0c0d79e27c1f61caab6ff62488eef8c57adca593 (diff) |
INTEGRATION: CWS geordi2q12 (1.28.90); FILE MERGED
2004/01/07 14:25:15 hr 1.28.90.1: #111934#: merge CWS dba01pp2 -> SRC680
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbc/OConnection.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/odbc/OConnection.cxx b/connectivity/source/drivers/odbc/OConnection.cxx index 517fe898f79c..7ec6cd3d4e67 100644 --- a/connectivity/source/drivers/odbc/OConnection.cxx +++ b/connectivity/source/drivers/odbc/OConnection.cxx @@ -2,9 +2,9 @@ * * $RCSfile: OConnection.cxx,v $ * - * $Revision: 1.28 $ + * $Revision: 1.29 $ * - * last change: $Author: vg $ $Date: 2003-04-11 14:41:09 $ + * last change: $Author: rt $ $Date: 2004-01-07 16:03:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -180,7 +180,7 @@ SQLRETURN OConnection::OpenConnection(const ::rtl::OUString& aConnectStr,sal_Int szConnStrIn, (SQLSMALLINT) ::std::min((sal_Int32)2048,aConStr.getLength()), szConnStrOut, - (SQLSMALLINT) sizeof szConnStrOut, + (SQLSMALLINT) (sizeof(szConnStrOut)/sizeof(SDB_ODBC_CHAR)) -1, &cbConnStrOut, SQL_DRIVER_NOPROMPT); if (nSQLRETURN == SQL_ERROR || nSQLRETURN == SQL_NO_DATA || SQL_SUCCESS_WITH_INFO == nSQLRETURN) |