Bug#539642: [openoffice.org-base] UPDATE db record fails: [unixODBC][SQLite]out of memory
Package: openoffice.org-base
Version: 1:3.1.0-5
Severity: important
--- Please enter the report below this line. ---
I'm using openoffice.org-base/unixodbc/sqlite3. When I try to modify
data in columns and push "save current record" button,
dialog pops up: [unixODBC][SQLite]out of memory.
This is not occured under i386 architecture.
I think this is because type mismatch between
ooo-build/build/OOO310_m11/connectivity/source/drivers/odbcbase/OTools.cxx
and unixodbc.
ooo-build/build/OOO310_m11/connectivity/source/drivers/odbcbase/OTools.cxx:
OTools::bindParameter (...., sal_Int8* pLenBuffer, ....)
....
{
SQLINTEGER * pLen = (SQLINTEGER*) pLenBuffer;
...
nRetcode = .... ->getOdbcFunction(...., pLen);
....
}
/usr/include/sqlext.h:
unixodbc-2.2.11/DriverManager/SQLBindParameter.c:
SQLBindParameter(...., SQLLEN *pcb_value)
According to /usr/include/sqltype.h,
under i386 architecture, SQLINTEGER == SQLLEN == long,
but under amd64 architecture, SQLINTER == int != SQLLEN == long.
--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.26-2-amd64
Debian Release: squeeze/sid
500 unstable www.debian-multimedia.org
500 unstable ftp.jp.debian.org
--- Package information. ---
Depends (Version) | Installed
=====================================================-+-==================
openoffice.org-core (= 1:3.1.0-5) | 1:3.1.0-5
openoffice.org-base-core (= 1:3.1.0-5) | 1:3.1.0-5
libc6 (>= 2.2.5) | 2.9-23
libgcc1 (>= 1:4.1.1) | 1:4.4.1-1
libstdc++6 (>= 4.1.1) | 4.4.1-1
ure (>= 1.5.0) | 1.5.0+OOo3.1.0-5
default-jre | 1.6-33
OR gcj-jre | 4:4.3.3-9
OR java-gcj-compat | 1.0.80-5.1
OR openjdk-6-jre | 6b16-4
OR sun-java5-jre |
OR sun-java6-jre | 6-14-1
OR java5-runtime |
OR jre |
libhsqldb-java (>> 1.8.0.10) | 1.8.0.10-2
openoffice.org-java-common (>> 2.2.0-4) | 1:3.1.0-5
openoffice.org-common (>> 1:3.1.0) | 1:3.1.0-5
ttf-opensymbol | 1:3.1.0-5
libc6 (>= 2.3) | 2.9-23
libcairo2 (>= 1.2.4) | 1.8.8-2
libcurl3-gnutls (>= 7.16.2-1) | 7.19.5-1
libdb4.7 | 4.7.25-7
libexpat1 (>= 1.95.8) | 2.0.1-4
libfreetype6 (>= 2.2.1) | 2.3.9-5
libgcc1 (>= 1:4.1.1) | 1:4.4.1-1
libglib2.0-0 (>= 2.12.0) | 2.20.4-1
libgstreamer-plugins-base0.10-0 (>= 0.10.0) | 0.10.23-3
libgstreamer0.10-0 (>= 0.10.0) | 0.10.23-2
libgtk2.0-0 (>= 2.10.0) | 2.16.5-1
libhunspell-1.2-0 (>= 1.2.8) | 1.2.8-4
libhyphen0 (>= 2.4) | 2.4-4
libice6 (>= 1:1.0.0) | 2:1.0.5-1
libicu40 (>= 4.0-1) | 4.0.1-3
libjpeg62 | 6b-14
libldap-2.4-2 (>= 2.4.7) | 2.4.17-1
libneon27 (>= 0.28.5) | 0.28.5-1
libnspr4-0d (>= 1.8.0.10) | 4.8-1
libnss3-1d (>= 3.12.0~1.9b1) | 3.12.3-1
librdf0 (>= 1.0.9) | 1.0.9-1
libsm6 | 2:1.1.0-2
libstdc++6 (>= 4.2.1) | 4.4.1-1
libx11-6 | 2:1.2.2-1
libxaw7 | 2:1.0.6-1
libxext6 | 2:1.0.4-1
libxinerama1 | 2:1.0.3-2
libxml2 (>= 2.6.27) | 2.7.3.dfsg-2
libxrandr2 | 2:1.3.0-2
libxrender1 | 1:0.9.4-2
libxslt1.1 2
--
IMOTO Takashi
Internet: http://www.imotos.net/takashi/
Reply to: