From chervol at quintagroup.com Mon Nov 13 18:41:27 2006 From: chervol at quintagroup.com (Volodymyr Cherepanyak) Date: Mon Nov 13 17:41:34 2006 Subject: [egenix-users] Integer data issues with MS Access Message-ID: Hi, I have issue with reading data from MS Access .mdb file on linux. Column names are not present in select results, integer data miss represented. Col0 3158067 3486259 but in isql the same query returns: item_qty 300 325 the item_qty type is Integer Configuration: Zope 2.9.5, Python 2.4.3., mxODBCDA ( egenix-mxodbc-zopeda-1.0.10.linux-i686-py2.4_ucs2.zip ), FedoraCore 4, unixODBC 2.2.11-3, mdbtools-20051217-1 -- Volodymyr Cherepanyak -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20061113/3be22019/attachment.htm From mal at egenix.com Wed Nov 15 10:51:40 2006 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Nov 15 10:51:45 2006 Subject: [egenix-users] Integer data issues with MS Access In-Reply-To: References: Message-ID: <455AE32C.8050408@egenix.com> Volodymyr Cherepanyak wrote: > Hi, > > I have issue with reading data from MS Access .mdb file on linux. Column > names are not present in select results, integer data miss represented. > > Col0 > 3158067 > 3486259 > > but in isql the same query returns: > > item_qty > 300 > 325 > > the item_qty type is Integer > > Configuration: Zope 2.9.5, Python 2.4.3., mxODBCDA ( > egenix-mxodbc-zopeda-1.0.10.linux-i686-py2.4_ucs2.zip ), FedoraCore 4, > unixODBC 2.2.11-3, mdbtools-20051217-1 This looks like a problem with the mdbtools ODBC driver having problems with returning integer values. Note that isql fetches all data as strings, while mxODBC uses the data types that the ODBC driver announces for each column. You might want to try the connection option 'Fetch short integers as integers ?'. If that doesn't help, there's not a lot we can do. While we do try to support as many different ODBC drivers as possible, we still have to rely on them providing working interfaces. Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 15 2006) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From g.mattiuzzi at miriade.it Wed Nov 29 17:41:20 2006 From: g.mattiuzzi at miriade.it (Gianluca Mattiuzzi) Date: Wed Nov 29 17:42:33 2006 Subject: [egenix-users] Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection does not exist', 7920) Message-ID: <456DB830.1070806@miriade.it> Hello, I have a problem with egenix mxODBC Database Connection. If Oracle via ODBC with "isql -n " the result is Connected ! But, if I try to connect with the same DSN_NAME, USER and PASSWORD in Zope via mxODBC Database Connection the result is *EGENIX.COM mxODBC Zope DA* Problem connecting to the database Connection string: DSN=DBTEST

Connection pool entry: 0

Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection d
oes not exist', 7920) Can anyone help me? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20061129/5550a6f2/attachment.htm From mal at egenix.com Wed Nov 29 19:03:33 2006 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Nov 29 19:03:37 2006 Subject: [egenix-users] Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection does not exist', 7920) In-Reply-To: <456DB830.1070806@miriade.it> References: <456DB830.1070806@miriade.it> Message-ID: <456DCB75.9030700@egenix.com> Gianluca Mattiuzzi wrote: > Hello, > I have a problem with egenix mxODBC Database Connection. > If Oracle via ODBC with > "isql -n " > the result is > Connected ! > > But, if I try to connect with the same DSN_NAME, USER and PASSWORD in > Zope via mxODBC Database Connection the result is > > *EGENIX.COM mxODBC Zope DA* > > Problem connecting to the database > Connection string: DSN=DBTEST

Connection pool entry: 0
>
Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection > d
oes not exist', 7920) > > > Can anyone help me? Please make sure that the DSN is a "System Data Source" and/or accessible by the Zope service process. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 29 2006) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Thu Nov 30 13:06:56 2006 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Nov 30 13:07:00 2006 Subject: [egenix-users] Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection does not exist', 7920) In-Reply-To: <456E940E.4000302@miriade.it> References: <456DB830.1070806@miriade.it> <456DCB75.9030700@egenix.com> <456E940E.4000302@miriade.it> Message-ID: <456EC960.8020504@egenix.com> [Please always CC the egenix-users mailing list - other users may have run into similar problems] Gianluca Mattiuzzi wrote: > Hello, > I use a System DSN located in /etc/odbc.ini, ODBC 2.2.11, Oracle 10g and > Oracle Client for ODBC driver. > Yesterday I tried to remove unixODBC and install it in the same > directory of Zope with the owner permissions for zope user, but I have > the same problem. Rereading the error message, this sounds a lot like a known problem: http://mail.easysoft.com/pipermail/unixodbc-support/2005-October/000739.html http://mail.easysoft.com/pipermail/unixodbc-support/2005-October/000742.html http://mail.easysoft.com/pipermail/unixodbc-support/2005-October/000743.html The cause is a permission problem with the libraries needed by the ODBC driver. Unfortunately, the error message is not very accurate and misleads into thinking that the data source definition cannot be found. Running unixODBC with ODBC tracing enabled will show the error message that relates to the specific library which cannot be opened. > M.-A. Lemburg ha scritto: >> Gianluca Mattiuzzi wrote: >> >>> Hello, >>> I have a problem with egenix mxODBC Database Connection. >>> If Oracle via ODBC with >>> "isql -n " >>> the result is >>> Connected ! >>> >>> But, if I try to connect with the same DSN_NAME, USER and PASSWORD in >>> Zope via mxODBC Database Connection the result is >>> >>> *EGENIX.COM mxODBC Zope DA* >>> >>> Problem connecting to the database >>> Connection string: DSN=DBTEST

Connection pool entry: 0
>>>
Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection >>> d
oes not exist', 7920) >>> >>> >>> Can anyone help me? >>> >> >> Please make sure that the DSN is a "System Data Source" and/or >> accessible by the Zope service process. >> >> > -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 30 2006) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::