pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feeddelphi access question?
10+ messages / 6 participants
[nested] [flat]
* delphi access question?
@ 2005-03-30 20:15 Joel Fradkin <jfradkin@wazagua.com>
2005-03-30 20:53 ` Re: [ODBC] delphi access question? Raymond O'Donnell <rod@iol.ie>
0 siblings, 1 reply; 10+ messages in thread
From: Joel Fradkin @ 2005-03-30 20:15 UTC (permalink / raw)
To: pgsql-sql@postgresql.org; +Cc: pgsql-odbc
One of my applications is in Delphi 5.
I just went to change it over to Postgres (from MSSQL).
I am using odbc and something a bit odd is happening.
I can run a sql statement ok, even in sql builder I see all the fields.
But the returned result set appears to be missing some of the fields.
So my table is
CREATE TABLE tbltranslations
(
transnumber int4 NOT NULL,
clientnum char(4) NOT NULL,
lastran timestamp,
lastupdated timestamp,
firstrowhasheading char(1),
fixed_delimited char(1),
tblname varchar(50),
delimeter char(1),
textqualifier char(1),
active bool,
direction char(1),
client_filename varchar(250),
ftp_account int4,
fixedlenghthascomma char(1),
ftp_path varchar(250),
ftp_filename varchar(50),
fieldname_forid_on_insert varchar(50)
)
but only fields
transnumber
lastran
lastupdated
active
and ftp_account
show up as fields I can add to the result.
Any ideas?
Joel Fradkin
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: [ODBC] delphi access question?
2005-03-30 20:15 delphi access question? Joel Fradkin <jfradkin@wazagua.com>
@ 2005-03-30 20:53 ` Raymond O'Donnell <rod@iol.ie>
0 siblings, 0 replies; 10+ messages in thread
From: Raymond O'Donnell @ 2005-03-30 20:53 UTC (permalink / raw)
To: Joel Fradkin <jfradkin@wazagua.com>; +Cc: pgsql-general@postgresql.org
On 30 Mar 2005 at 15:15, Joel Fradkin wrote:
> I can run a sql statement ok, even in sql builder I see all the fields.
> But the returned result set appears to be missing some of the fields.
Probably a silly question, but do you have all the fields SELECTed in
the SQL statement in the TQuery (or whatever you're using)?
If so, are you using persistent fields? If you are, have you tried
deleting them all from the fields editor and rebuilding them (right-
click on the empty fields editor and click on "Add all fields")?
--Ray.
-------------------------------------------------------------
Raymond O'Donnell http://www.galwaycathedral.org/recitals
rod@iol.ie Galway Cathedral Recitals
-------------------------------------------------------------
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: delphi access question?
@ 2005-03-30 21:19 Merlin Moncure <merlin.moncure@rcsonline.com>
2005-03-31 00:19 ` Re: delphi access question? Joel Fradkin <jfradkin@wazagua.com>
0 siblings, 1 reply; 10+ messages in thread
From: Merlin Moncure @ 2005-03-30 21:19 UTC (permalink / raw)
To: Joel Fradkin <jfradkin@wazagua.com>; +Cc: pgsql-odbc
> One of my applications is in Delphi 5.
> I just went to change it over to Postgres (from MSSQL).
> I am using odbc and something a bit odd is happening.
> I can run a sql statement ok, even in sql builder I see all the
fields.
> But the returned result set appears to be missing some of the fields.
> So my table is
> CREATE TABLE tbltranslations
> (
> transnumber int4 NOT NULL,
> clientnum char(4) NOT NULL,
> lastran timestamp,
> lastupdated timestamp,
> firstrowhasheading char(1),
> fixed_delimited char(1),
> tblname varchar(50),
> delimeter char(1),
> textqualifier char(1),
> active bool,
> direction char(1),
> client_filename varchar(250),
> ftp_account int4,
> fixedlenghthascomma char(1),
> ftp_path varchar(250),
> ftp_filename varchar(50),
> fieldname_forid_on_insert varchar(50)
> )
> but only fields
> transnumber
> lastran
> lastupdated
> active
> and ftp_account
> show up as fields I can add to the result.
> Any ideas?
Seems like it is having problems with your character fields. Are you
using the BDE? If so, I'd strongly suggest checking out Zeos database
objects and porting your app to use them at the same time.
Merlin
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: delphi access question?
2005-03-30 21:19 Re: delphi access question? Merlin Moncure <merlin.moncure@rcsonline.com>
@ 2005-03-31 00:19 ` Joel Fradkin <jfradkin@wazagua.com>
0 siblings, 0 replies; 10+ messages in thread
From: Joel Fradkin @ 2005-03-31 00:19 UTC (permalink / raw)
To: pgsql-odbc
That really works great thanks for the idea.
Even I could get it installed and working and all my fields are showing up
using the zeos sql object.
Joel Fradkin
Seems like it is having problems with your character fields. Are you
using the BDE? If so, I'd strongly suggest checking out Zeos database
objects and porting your app to use them at the same time.
Merlin
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: [SQL] delphi access question?
@ 2005-03-30 21:19 Gregory S. Williamson <gsw@globexplorer.com>
2005-03-30 21:36 ` Re: [SQL] delphi access question? Joel Fradkin <jfradkin@wazagua.com>
2005-04-03 09:20 ` Re: [SQL] delphi access question? Andreas Pflug <pgadmin@pse-consulting.de>
2005-04-04 10:29 ` Re: [SQL] delphi access question? Miguel Juan <mjuan@cibal.es>
0 siblings, 3 replies; 10+ messages in thread
From: Gregory S. Williamson @ 2005-03-30 21:19 UTC (permalink / raw)
To: Joel Fradkin <jfradkin@wazagua.com>; pgsql-sql@postgresql.org; +Cc: pgsql-odbc
Something is not translating CHAR values correctly -- all the fields that you "see" are not char values.
Have no idea off hand *why* this would be ... character encoding differences maybe ?
Greg Williamson
DBA
GlobeXplorer LLC
-----Original Message-----
From: Joel Fradkin [mailto:jfradkin@wazagua.com]
Sent: Wed 3/30/2005 12:15 PM
To: pgsql-sql@postgresql.org
Cc: pgsql-odbc@postgresql.org
Subject: [SQL] delphi access question?
One of my applications is in Delphi 5.
I just went to change it over to Postgres (from MSSQL).
I am using odbc and something a bit odd is happening.
I can run a sql statement ok, even in sql builder I see all the fields.
But the returned result set appears to be missing some of the fields.
So my table is
CREATE TABLE tbltranslations
(
transnumber int4 NOT NULL,
clientnum char(4) NOT NULL,
lastran timestamp,
lastupdated timestamp,
firstrowhasheading char(1),
fixed_delimited char(1),
tblname varchar(50),
delimeter char(1),
textqualifier char(1),
active bool,
direction char(1),
client_filename varchar(250),
ftp_account int4,
fixedlenghthascomma char(1),
ftp_path varchar(250),
ftp_filename varchar(50),
fieldname_forid_on_insert varchar(50)
)
but only fields
transnumber
lastran
lastupdated
active
and ftp_account
show up as fields I can add to the result.
Any ideas?
Joel Fradkin
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
!DSPAM:424b0a12126562811677690!
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: [SQL] delphi access question?
2005-03-30 21:19 Re: [SQL] delphi access question? Gregory S. Williamson <gsw@globexplorer.com>
@ 2005-03-30 21:36 ` Joel Fradkin <jfradkin@wazagua.com>
2 siblings, 0 replies; 10+ messages in thread
From: Joel Fradkin @ 2005-03-30 21:36 UTC (permalink / raw)
To: 'Gregory S. Williamson' <gsw@globexplorer.com>; pgsql-sql@postgresql.org; +Cc: pgsql-odbc
Yea odd thing is if I use a table type object it see the fields so it is
only with query objects.
The same odbc works ok with my asp pages.
I will see if I can figure out the zeos stuff.
Something is not translating CHAR values correctly -- all the fields that
you "see" are not char values.
Have no idea off hand *why* this would be ... character encoding differences
maybe ?
Greg Williamson
DBA
GlobeXplorer LLC
-----Original Message-----
From: Joel Fradkin [mailto:jfradkin@wazagua.com]
Sent: Wed 3/30/2005 12:15 PM
To: pgsql-sql@postgresql.org
Cc: pgsql-odbc@postgresql.org
Subject: [SQL] delphi access question?
One of my applications is in Delphi 5.
I just went to change it over to Postgres (from MSSQL).
I am using odbc and something a bit odd is happening.
I can run a sql statement ok, even in sql builder I see all the fields.
But the returned result set appears to be missing some of the fields.
So my table is
CREATE TABLE tbltranslations
(
transnumber int4 NOT NULL,
clientnum char(4) NOT NULL,
lastran timestamp,
lastupdated timestamp,
firstrowhasheading char(1),
fixed_delimited char(1),
tblname varchar(50),
delimeter char(1),
textqualifier char(1),
active bool,
direction char(1),
client_filename varchar(250),
ftp_account int4,
fixedlenghthascomma char(1),
ftp_path varchar(250),
ftp_filename varchar(50),
fieldname_forid_on_insert varchar(50)
)
but only fields
transnumber
lastran
lastupdated
active
and ftp_account
show up as fields I can add to the result.
Any ideas?
Joel Fradkin
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
!DSPAM:424b0a12126562811677690!
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: [SQL] delphi access question?
2005-03-30 21:19 Re: [SQL] delphi access question? Gregory S. Williamson <gsw@globexplorer.com>
@ 2005-04-03 09:20 ` Andreas Pflug <pgadmin@pse-consulting.de>
2 siblings, 0 replies; 10+ messages in thread
From: Andreas Pflug @ 2005-04-03 09:20 UTC (permalink / raw)
To: Gregory S. Williamson <gsw@globexplorer.com>; +Cc: Joel Fradkin <jfradkin@wazagua.com>; pgsql-odbc
Gregory S. Williamson wrote:
> Something is not translating CHAR values correctly -- all the fields that you "see" are not char values.
>
> Have no idea off hand *why* this would be ... character encoding differences maybe ?
>
> Greg Williamson
> DBA
> GlobeXplorer LLC
>
> -----Original Message-----
> From: Joel Fradkin [mailto:jfradkin@wazagua.com]
> Sent: Wed 3/30/2005 12:15 PM
> To: pgsql-sql@postgresql.org
> Cc: pgsql-odbc@postgresql.org
> Subject: [SQL] delphi access question?
> One of my applications is in Delphi 5.
> I just went to change it over to Postgres (from MSSQL).
> I am using odbc and something a bit odd is happening.
> I can run a sql statement ok, even in sql builder I see all the fields.
> But the returned result set appears to be missing some of the fields.
> So my table is
> CREATE TABLE tbltranslations
> (
> transnumber int4 NOT NULL,
> clientnum char(4) NOT NULL,
> lastran timestamp,
> lastupdated timestamp,
> firstrowhasheading char(1),
> fixed_delimited char(1),
> tblname varchar(50),
> delimeter char(1),
> textqualifier char(1),
> active bool,
> direction char(1),
> client_filename varchar(250),
> ftp_account int4,
> fixedlenghthascomma char(1),
> ftp_path varchar(250),
> ftp_filename varchar(50),
> fieldname_forid_on_insert varchar(50)
> )
> but only fields
> transnumber
> lastran
> lastupdated
> active
> and ftp_account
> show up as fields I can add to the result.
> Any ideas?
Are you using BDE with psqlodbc 8.0? I've seen problems with that, and
found only 7.0.0200 mostly working; any later version will show the
missing column problem.
Regards,
Andreas
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: [SQL] delphi access question?
2005-03-30 21:19 Re: [SQL] delphi access question? Gregory S. Williamson <gsw@globexplorer.com>
@ 2005-04-04 10:29 ` Miguel Juan <mjuan@cibal.es>
2 siblings, 0 replies; 10+ messages in thread
From: Miguel Juan @ 2005-04-04 10:29 UTC (permalink / raw)
To: pgsql-odbc
Hi,
I don't know if this may help but after comparing the mylog.log files I
have noticed that it looks like the copy_and_convert function recives a
fctype=-9999 in version 8, while it recives a fctype=1 in version 7.3.
It doesn't matter the encoding of the database, becouse I have tried it with
SQL_ASCII, LATIN1 and UNICODE with the same results.
This also afect to MS-Access, all the text field values appear like
"deleted" ("Eliminado" in spanish).
Regards,
Miguel Juan
----- Original Message -----
From: Gregory S. Williamson
To: Joel Fradkin ; pgsql-sql@postgresql.org
Cc: pgsql-odbc@postgresql.org
Sent: Wednesday, March 30, 2005 11:19 PM
Subject: Re: [ODBC] [SQL] delphi access question?
Something is not translating CHAR values correctly -- all the fields that
you "see" are not char values.
Have no idea off hand *why* this would be ... character encoding differences
maybe ?
Greg Williamson
DBA
GlobeXplorer LLC
-----Original Message-----
From: Joel Fradkin [mailto:jfradkin@wazagua.com]
Sent: Wed 3/30/2005 12:15 PM
To: pgsql-sql@postgresql.org
Cc: pgsql-odbc@postgresql.org
Subject: [SQL] delphi access question?
One of my applications is in Delphi 5.
I just went to change it over to Postgres (from MSSQL).
I am using odbc and something a bit odd is happening.
I can run a sql statement ok, even in sql builder I see all the fields.
But the returned result set appears to be missing some of the fields.
So my table is
CREATE TABLE tbltranslations
(
transnumber int4 NOT NULL,
clientnum char(4) NOT NULL,
lastran timestamp,
lastupdated timestamp,
firstrowhasheading char(1),
fixed_delimited char(1),
tblname varchar(50),
delimeter char(1),
textqualifier char(1),
active bool,
direction char(1),
client_filename varchar(250),
ftp_account int4,
fixedlenghthascomma char(1),
ftp_path varchar(250),
ftp_filename varchar(50),
fieldname_forid_on_insert varchar(50)
)
but only fields
transnumber
lastran
lastupdated
active
and ftp_account
show up as fields I can add to the result.
Any ideas?
Joel Fradkin
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
!DSPAM:424b0a12126562811677690!
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: delphi access question?
@ 2005-07-01 20:49 Merlin Moncure <merlin.moncure@rcsonline.com>
2005-07-01 20:57 ` Re: delphi access question? Joel Fradkin <jfradkin@wazagua.com>
0 siblings, 1 reply; 10+ messages in thread
From: Merlin Moncure @ 2005-07-01 20:49 UTC (permalink / raw)
To: Joel Fradkin <jfradkin@wazagua.com>; +Cc: pgsql-odbc
>
> Hate to fix it so the new odbc drivers work, but my Delphi application
> doesn't.
> Also if you had any experience with the newer odbc drivers and Unicode
in
> regards to issues I might see.
> I tested my web page using a converted record (Unicode database) and
it is
> showing up ok now, but the old odbc will not display it, so I will not
be
> able to switch back easily.
Zeos support for Unicode/postgresql is partial:
http://web10086.xolphin.net/index.php?option=com_simpleboard&Itemid=&fun
c=view&catid=101&id=1339#1339
however things may have improved since then. ymmv.
I expect the new odbc driver should fix a lot of your odbc related
problems. It's been a long time coming.
Merlin
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: delphi access question?
2005-07-01 20:49 Re: delphi access question? Merlin Moncure <merlin.moncure@rcsonline.com>
@ 2005-07-01 20:57 ` Joel Fradkin <jfradkin@wazagua.com>
0 siblings, 0 replies; 10+ messages in thread
From: Joel Fradkin @ 2005-07-01 20:57 UTC (permalink / raw)
To: 'Merlin Moncure' <merlin.moncure@rcsonline.com>; +Cc: pgsql-odbc
Is there a new one out?
I was speaking of 8.0 vrs 7.4
I did just install the latest 8.0.3 win32 version of postgres and am using
the odbc that comes with it.
I guess I will test the Delphi app prior to getting excited about my last
victory of getting my data in a Unicode database.
Thanks for getting back in touch.
Joel Fradkin
Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel. 941-753-7111 ext 305
jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.
-----Original Message-----
From: Merlin Moncure [mailto:merlin.moncure@rcsonline.com]
Sent: Friday, July 01, 2005 3:49 PM
To: Joel Fradkin
Cc: pgsql-odbc@postgresql.org
Subject: RE: [ODBC] delphi access question?
>
> Hate to fix it so the new odbc drivers work, but my Delphi application
> doesn't.
> Also if you had any experience with the newer odbc drivers and Unicode
in
> regards to issues I might see.
> I tested my web page using a converted record (Unicode database) and
it is
> showing up ok now, but the old odbc will not display it, so I will not
be
> able to switch back easily.
Zeos support for Unicode/postgresql is partial:
http://web10086.xolphin.net/index.php?option=com_simpleboard&Itemid=&fun
c=view&catid=101&id=1339#1339
however things may have improved since then. ymmv.
I expect the new odbc driver should fix a lot of your odbc related
problems. It's been a long time coming.
Merlin
^ permalink raw reply [nested|flat] 10+ messages in thread
end of thread, other threads:[~2005-07-01 20:57 UTC | newest]
Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-30 20:15 delphi access question? Joel Fradkin <jfradkin@wazagua.com>
2005-03-30 20:53 ` Raymond O'Donnell <rod@iol.ie>
2005-03-30 21:19 Re: delphi access question? Merlin Moncure <merlin.moncure@rcsonline.com>
2005-03-31 00:19 ` Joel Fradkin <jfradkin@wazagua.com>
2005-03-30 21:19 Re: [SQL] delphi access question? Gregory S. Williamson <gsw@globexplorer.com>
2005-03-30 21:36 ` Joel Fradkin <jfradkin@wazagua.com>
2005-04-03 09:20 ` Andreas Pflug <pgadmin@pse-consulting.de>
2005-04-04 10:29 ` Miguel Juan <mjuan@cibal.es>
2005-07-01 20:49 Re: delphi access question? Merlin Moncure <merlin.moncure@rcsonline.com>
2005-07-01 20:57 ` Joel Fradkin <jfradkin@wazagua.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox