From elim@pdtnetworks.net Sat Jul 30 21:47:02 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 40EC352AA0 for ; Sat, 30 Jul 2005 18:47:02 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60924-05 for ; Sat, 30 Jul 2005 21:46:53 +0000 (GMT) Received: from mail.pdtnetworks.net (mail.pdtmail.com [63.150.168.107]) by svr1.postgresql.org (Postfix) with ESMTP id BCCD85280C for ; Sat, 30 Jul 2005 18:46:51 -0300 (ADT) Received: from grace [63.150.171.249] by mail.pdtnetworks.net with ESMTP (SMTPD32-8.15) id A540C120186; Sat, 30 Jul 2005 15:46:40 -0600 Message-ID: <008101c59550$2ecff4b0$0102a8c0@grace> From: "YL" To: Subject: problem odbc 8.0 with EOModeler Date: Sat, 30 Jul 2005 15:46:45 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_007E_01C5951D.E3CA8DE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.069 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, HTML_60_70, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200507/173 X-Sequence-Number: 5638 This is a multi-part message in MIME format. ------=_NextPart_000_007E_01C5951D.E3CA8DE0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable I've used EOModeler with odbc for MS SQL Server,=20 MySQL and MS Access with no problem. But got=20 problem with postgre odbc driver. (the newest one)=20 EOMOdeler cannot get postgresql column types' info=20 through odbc. Also, It cannot interact with EOModeler for very simple query: SQLExecDirectin - [ODBCChannel evaluateExpression: ()] S 1000-7: ERROR: column 'elim' doesnot exitst EOModeler is an app in WebObjects (www.apple.com)=20 I'm using version 4.5.1 ObjC. EOModeler has adaptors for Oracle, Infomix, Sybase, Openbase. All works very well. My guess is that postgresql-odbc has some non-standard api and so EOModeler fails to work with it. ------=_NextPart_000_007E_01C5951D.E3CA8DE0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
I've used EOModeler with odbc for MS = SQL Server,=20
MySQL and MS Access with no = problem. But got
problem with postgre odbc driver. (the = newest=20 one) 
 
EOMOdeler cannot get postgresql column = types' info=20
through odbc. Also,=20 It cannot interact with EOModeler
for very simple query:
 
SQLExecDirectin - [ODBCChannel=20 evaluateExpression:
(<ODBCSQLExpression: "SELECT=20 t0.pname,t0.person_id
FROM person t0 WHERE t0.pname =3D ? "=20 withBindings:
(1:Elim(name)) >)]
S 1000-7: ERROR: column 'elim' doesnot=20 exitst
 
EOModeler is an app in WebObjects (www.apple.com)
I'm using version 4.5.1 ObjC. EOModeler = has=20 adaptors
for Oracle, Infomix, Sybase, Openbase. = All works=20 very
well.
 
My guess is that postgresql-odbc has = some=20 non-standard
api and so EOModeler fails to work with = it.
 
 
 
 
 
 
------=_NextPart_000_007E_01C5951D.E3CA8DE0-- From elim@pdtnetworks.net Mon Aug 1 18:48:28 2005 X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9560A52BE4 for ; Mon, 1 Aug 2005 15:48:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78108-07 for ; Mon, 1 Aug 2005 18:48:16 +0000 (GMT) Received: from mail.pdtnetworks.net (mail.pdtmail.com [63.150.168.107]) by svr1.postgresql.org (Postfix) with ESMTP id 19C0552BD9 for ; Mon, 1 Aug 2005 15:48:12 -0300 (ADT) Received: from grace [204.144.131.66] by mail.pdtnetworks.net with ESMTP (SMTPD32-8.15) id AE61BAFB013C; Mon, 01 Aug 2005 12:48:01 -0600 Message-ID: <00c301c596c9$8a8b8740$0800a8c0@grace> From: "YL" To: "Kevin Grittner" , , References: Subject: Re: problem odbc 8.0 with EOModeler Date: Mon, 1 Aug 2005 12:47:59 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 x-mimeole: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200508/7 X-Sequence-Number: 12431 Hi Kevin, you're right. When i type pname = '\'Elim\'' in the EOModeler, it works (fetches the right match). i can even do pname like '\'Eli*\'' with the right results. But what this mean in odbc level? (i don't need to add additional quotes for other odbc data sources) When query against numerical columns, things works quite well ----- Original Message ----- From: "Kevin Grittner" To: ; ; Sent: Monday, August 01, 2005 12:31 PM Subject: Re: [BUGS] problem odbc 8.0 with EOModeler It looks like this is being treated on the server as though the statement is: SELECT t0."pname", t0."person_id" FROM "person" t0 WHERE t0."pname" = Elim rather than: SELECT t0."pname", t0."person_id" FROM "person" t0 WHERE t0."pname" = 'Elim' >>> "YL" 08/01/05 1:07 PM >>> Thanks Eric and Kevin for the responses to my post. My Testing table was Person (person_id int not null, name varchar(32)) and my query typed in EOModeler is name = 'Elim' EOModeler has an interface letting you specify connection method. There are adaptors (oracle, informix, sybase...) and odbc data source the choose from. My headache is that for the same setting and table in difference database server and odbc datasource, i have no problem with the query except when i switch the data source to postgresql odbc. It has two things not normal to me: [unlike other database and odbc, postgresql-odbc reveals no database column type list to EOModeler which i believe a missing of some api standard to other odbc implementations. For example, mysql odbc lets EOModeler show the available column types such as int, mediumint, tinyint, char, varchar, text ....So that one can specify column types when model an entity (table)] and the error msg (from EOModeler) SQLExecDirect in -[ODBCChannel evaluateExpression:()] S1000-7: ERROR: column "elim" does not exist (sorry I took the quotes around the column name 'pname' in my previous post) Means that somehow my matching value 'Elim' been interpreted as column name!!! since the same query works perfect with other kind of odbc data sources, i guess this really indicate that EOModeler and postgresql-odbc can not communicate correctly. in other words, postgresql-odbc has special API's that not make sense to EOModeler. ----- Original Message ----- From: "Kevin Grittner" To: ; Sent: Monday, August 01, 2005 8:25 AM Subject: Re: [BUGS] problem odbc 8.0 with EOModeler Is the column name "Elim" or "elim"? If the former, try putting quotes around it, as required by the ANSI and ISO standards for mixed case identifiers. Some database products fail to comply with the standards in this respect. PostgreSQL comes close, although it treats unquoted identifers as all lower case rather than all upper case as required by the standards. -Kevin >>> "YL" 07/30/05 3:48 PM >>> I've used EOModeler with odbc for MS SQL Server, MySQL and MS Access with no problem. But got problem with postgre odbc driver. (the newest one) EOMOdeler cannot get postgresql column types' info through odbc. Also, It cannot interact with EOModeler for very simple query: SQLExecDirectin - [ODBCChannel evaluateExpression: ()] S 1000-7: ERROR: column 'elim' doesnot exitst EOModeler is an app in WebObjects (www.apple.com) I'm using version 4.5.1 ObjC. EOModeler has adaptors for Oracle, Infomix, Sybase, Openbase. All works very well. My guess is that postgresql-odbc has some non-standard api and so EOModeler fails to work with it. -- Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 7/28/2005 ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings -- Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 7/28/2005 From Kevin.Grittner@wicourts.gov Mon Aug 1 19:35:06 2005 X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B1EC452C17 for ; Mon, 1 Aug 2005 16:35:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93237-03 for ; Mon, 1 Aug 2005 19:35:04 +0000 (GMT) Received: from gw1.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id 7A88E52C24 for ; Mon, 1 Aug 2005 16:35:02 -0300 (ADT) Received: from Courts-MTA by gw1.wicourts.gov with Novell_GroupWise; Mon, 01 Aug 2005 14:35:00 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Mon, 01 Aug 2005 14:34:52 -0500 From: "Kevin Grittner" To: , , Subject: Re: problem odbc 8.0 with EOModeler Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/8 X-Sequence-Number: 12432 I'm not sure what it means at the ODBC level, since I don't use ODBC. I = was hoping my observations might help you in the right direction anyway. =20 If you need to stay with ODBC, you might try posting to the ODBC mailing = list rather than the bugs list -- the problem seems to be in the ODBC = driver, and a message on that list might get read by people more familiar = with that driver. =20 I see in a posting from Theodore Petrosky that EOModler works with JDBC. = If you can use that instead, you are likely to be better off than with = ODBC. =20 -Kevin =20 =20 >>> "YL" 08/01/05 1:47 PM >>> Hi Kevin, you're right. When i type pname =3D '\'Elim\'' in the EOModeler, it works (fetches the right match). i can even do pname like '\'Eli*\'' with the right results. But what this mean in odbc level? (i don't need to add additional quotes = for other odbc data sources) When query against numerical columns, things works quite well ----- Original Message -----=20 From: "Kevin Grittner" To: ; ; Sent: Monday, August 01, 2005 12:31 PM Subject: Re: [BUGS] problem odbc 8.0 with EOModeler It looks like this is being treated on the server as though the statement is: SELECT t0."pname", t0."person_id" FROM "person" t0 WHERE t0."pname" =3D Elim rather than: SELECT t0."pname", t0."person_id" FROM "person" t0 WHERE t0."pname" =3D 'Elim' >>> "YL" 08/01/05 1:07 PM >>> Thanks Eric and Kevin for the responses to my post. My Testing table was Person (person_id int not null, name varchar(32)) and my query typed in EOModeler is name =3D 'Elim' EOModeler has an interface letting you specify connection method. There are adaptors (oracle, informix, sybase...) and odbc data source the choose from. My headache is that for the same setting and table in difference database server and odbc datasource, i have no problem with the query except when i switch the data source to postgresql odbc. It has two things not normal to me: [unlike other database and odbc, postgresql-odbc reveals no database column type list to EOModeler which i believe a missing of some api standard to other odbc implementations. For example, mysql odbc lets EOModeler show the available column types such as int, mediumint, tinyint, char, varchar, text ....So that one can specify column types when model an entity (table)] and the error msg (from EOModeler) SQLExecDirect in -[ODBCChannel evaluateExpression:()] S1000-7: ERROR: column "elim" does not exist (sorry I took the quotes around the column name 'pname' in my previous = post) Means that somehow my matching value 'Elim' been interpreted as column name!!! since the same query works perfect with other kind of odbc data sources, i guess this really indicate that EOModeler and postgresql-odbc can not communicate= correctly. in other words, postgresql-odbc has special API's that not make sense to EOModeler. ----- Original Message -----=20 From: "Kevin Grittner" To: ; Sent: Monday, August 01, 2005 8:25 AM Subject: Re: [BUGS] problem odbc 8.0 with EOModeler Is the column name "Elim" or "elim"? If the former, try putting quotes around it, as required by the ANSI and ISO standards for mixed case identifiers. Some database products fail to comply with the standards in this respect. PostgreSQL comes close, although it treats unquoted identifers as all lower case rather than all upper case as required by the standards. -Kevin >>> "YL" 07/30/05 3:48 PM >>> I've used EOModeler with odbc for MS SQL Server, MySQL and MS Access with no problem. But got problem with postgre odbc driver. (the newest one) EOMOdeler cannot get postgresql column types' info through odbc. Also, It cannot interact with EOModeler for very simple query: SQLExecDirectin - [ODBCChannel evaluateExpression: ()] S 1000-7: ERROR: column 'elim' doesnot exitst EOModeler is an app in WebObjects (www.apple.com) I'm using version 4.5.1 ObjC. EOModeler has adaptors for Oracle, Infomix, Sybase, Openbase. All works very well. My guess is that postgresql-odbc has some non-standard api and so EOModeler fails to work with it. --=20 Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 7/28/2005 ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings --=20 Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 7/28/2005 ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq From whalesuit@bonbon.net Mon Aug 1 19:33:28 2005 X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1D87E52C17; Mon, 1 Aug 2005 16:33:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91191-06; Mon, 1 Aug 2005 19:33:18 +0000 (GMT) Received: from smtp-out.hotpop.com (smtp-out.hotpop.com [38.113.3.61]) by svr1.postgresql.org (Postfix) with ESMTP id 1DAF152C02; Mon, 1 Aug 2005 16:33:17 -0300 (ADT) Received: from bonbon.net (kubrick.hotpop.com [38.113.3.103]) by smtp-out.hotpop.com (Postfix) with SMTP id 817D7151CDF6; Mon, 1 Aug 2005 19:33:12 +0000 (UTC) Received: from [127.0.0.1] (static-151-201-137-153.pitt.east.verizon.net [151.201.137.153]) by smtp-3.hotpop.com (Postfix) with ESMTP id 1203717790F6; Mon, 1 Aug 2005 19:33:10 +0000 (UTC) Message-ID: <42EE79AF.1060601@bonbon.net> Date: Mon, 01 Aug 2005 15:36:15 -0400 From: Eric E User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: YL Cc: Kevin Grittner , pgsql-bugs@postgresql.org, pgsql-odbc@postgresql.org Subject: Re: problem odbc 8.0 with EOModeler References: <00c301c596c9$8a8b8740$0800a8c0@grace> In-Reply-To: <00c301c596c9$8a8b8740$0800a8c0@grace> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.031 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200508/28 X-Sequence-Number: 12452 Hi YL, You may also want to check that EOModeler is not quoting strings with double quotes (") rather than single-quotes (') in ODBC, say by auditing the same call to MySQL. And maybe check out which ODBC version calls EOModeler is calling, and sounds like it could potentially(!) be using legacy calls to the ODBC driver. I can't say I know enough about ODBC to be able to guide you on that, but I believe the pgsql-odbc list has a number of members who can. Cheers, EE YL wrote: >Hi Kevin, you're right. When i type >pname = '\'Elim\'' >in the EOModeler, it works (fetches the right match). >i can even do >pname like '\'Eli*\'' >with the right results. >But what this mean in odbc level? (i don't need to add additional quotes for >other odbc data sources) > >When query against numerical columns, things works quite well > >----- Original Message ----- >From: "Kevin Grittner" >To: ; ; > >Sent: Monday, August 01, 2005 12:31 PM >Subject: Re: [BUGS] problem odbc 8.0 with EOModeler > > >It looks like this is being treated on the server as though the statement >is: > >SELECT t0."pname", t0."person_id" > FROM "person" t0 WHERE t0."pname" = Elim > >rather than: > >SELECT t0."pname", t0."person_id" > FROM "person" t0 WHERE t0."pname" = 'Elim' > > > > >>>>"YL" 08/01/05 1:07 PM >>> >>>> >>>> >Thanks Eric and Kevin for the responses to my post. > >My Testing table was >Person (person_id int not null, name varchar(32)) >and my query typed in EOModeler is > name = 'Elim' > >EOModeler has an interface letting you specify connection method. >There are adaptors (oracle, informix, sybase...) and odbc data source >the choose from. > >My headache is that for the same setting and table in difference >database server and odbc datasource, i have no problem with the >query except when i switch the data source to postgresql odbc. > >It has two things not normal to me: [unlike other database and odbc, >postgresql-odbc reveals no database column type list to EOModeler >which i believe a missing of some api standard to other odbc >implementations. >For example, mysql odbc lets EOModeler show the available column >types such as int, mediumint, tinyint, char, varchar, text ....So that >one can specify column types when model an entity (table)] and the error >msg (from EOModeler) > >SQLExecDirect in -[ODBCChannel evaluateExpression:("SELECT t0."pname", t0."person_id" FROM "person" t0 WHERE t0."pname" = ?" >withBindings:(1:Elim(pname))>)] >S1000-7: ERROR: column "elim" does not exist >(sorry I took the quotes around the column name 'pname' in my previous post) > >Means that somehow my matching value 'Elim' been interpreted as column >name!!! >since the same query works perfect with other kind of odbc data sources, i >guess >this really indicate that EOModeler and postgresql-odbc can not communicate >correctly. in other words, postgresql-odbc has special API's that not make >sense to >EOModeler. > > > >----- Original Message ----- >From: "Kevin Grittner" >To: ; >Sent: Monday, August 01, 2005 8:25 AM >Subject: Re: [BUGS] problem odbc 8.0 with EOModeler > > >Is the column name "Elim" or "elim"? If the former, try putting quotes >around it, as required by the ANSI and ISO standards for mixed case >identifiers. Some database products fail to comply with the standards in >this respect. PostgreSQL comes close, although it treats unquoted >identifers as all lower case rather than all upper case as required by the >standards. > >-Kevin > > > > >>>>"YL" 07/30/05 3:48 PM >>> >>>> >>>> >I've used EOModeler with odbc for MS SQL Server, >MySQL and MS Access with no problem. But got >problem with postgre odbc driver. (the newest one) > >EOMOdeler cannot get postgresql column types' info >through odbc. Also, It cannot interact with EOModeler >for very simple query: > >SQLExecDirectin - [ODBCChannel evaluateExpression: >(FROM person t0 WHERE t0.pname = ? " withBindings: >(1:Elim(name)) >)] >S 1000-7: ERROR: column 'elim' doesnot exitst > >EOModeler is an app in WebObjects (www.apple.com) >I'm using version 4.5.1 ObjC. EOModeler has adaptors >for Oracle, Infomix, Sybase, Openbase. All works very >well. > >My guess is that postgresql-odbc has some non-standard >api and so EOModeler fails to work with it. > > > > > >