Thread: psqlOdbc Ansi + BDE issues
From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Miguel Juan
Sent: 11 November 2005 12:56
To: pgsql-odbc@postgresql.org
Subject: [ODBC] psqlOdbc Ansi + BDE issuesHi,I'm testing the Ansi version of the psqlodbc-08.01.0100 and I have found a few isues.If you open a table with the BDE SQL explorer, now it shows all the text fields (char, varchar and text), but for the TEXT type it show the contents as MEMO. This behavior could be changed in prior versions unchecking the "Text as LongVarChar" option and checking the "Longest" option in the "Unknown Sizes" section.Now, it can be fixed only changing the "Max LongVarchar" edit to 254. It looks like the driver it is not using the "longest" option in the configuration.
If you open the database schema with the sql explorer it does not show all the tables, and each table that it shows appears 6 times. It is easy to reproduce, because it happens with all the system tables.
Hi,
I'm testing the Ansi version of the psqlodbc-08.01.0100 and I have found a few isues.
If you open a table with the BDE SQL explorer, now it shows all the text fields (char, varchar and text), but for the TEXT type it show the contents as MEMO. This behavior could be changed in prior versions unchecking the "Text as LongVarChar" option and checking the "Longest" option in the "Unknown Sizes" section.
Now, it can be fixed only changing the "Max LongVarchar" edit to 254. It looks like the driver it is not using the "longest" option in the configuration.
No - longest doesn't work anymore because there is no sensible way to figure it out with the libpq driver architecture. It was only ever there to support pre-6.4 servers that couldn't report the defined column width (see the config.htm doc for details).
That aside, shouldn't TEXT equate to MEMO anyway?
yes. TMemoField only VCL type capable of handling unlimited length text fields.
Just:
- use TMemo instead of TEdit
- Find a replacement for TDBGrid (I use TopGrid)
If you open the database schema with the sql explorer it does not show all the tables, and each table that it shows appears 6 times. It is easy to reproduce, because it happens with all the system tables.
Please try 08.01.0101.
Regards, Dave.
From: Miguel Juan [mailto:mjuan@cibal.es]
Sent: 15 November 2005 15:08
To: Dave Page
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] psqlOdbc Ansi + BDE issuesHello,That aside, shouldn't TEXT equate to MEMO anyway?Sure yes, but before (version 7.x) TEXT equate to VARCHAR if the longest size is under 255 characters, and this change the behavior of some Delphi components, such as TDataGrid, etc. Anyway, it could be solved easily with a few lines of code.
If you open the database schema with the sql explorer it does not show all the tables, and each table that it shows appears 6 times. It is easy to reproduce, because it happens with all the system tables.Please try 08.01.0101.Now it shows each system table about four times, and each user table about three times. Still not showing all the tables in the database.
----- Original Message -----From: Dave PageSent: Tuesday, November 15, 2005 11:08 AMSubject: Re: [ODBC] psqlOdbc Ansi + BDE issues
From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Miguel Juan
Sent: 11 November 2005 12:56
To: pgsql-odbc@postgresql.org
Subject: [ODBC] psqlOdbc Ansi + BDE issuesHi,I'm testing the Ansi version of the psqlodbc-08.01.0100 and I have found a few isues.If you open a table with the BDE SQL explorer, now it shows all the text fields (char, varchar and text), but for the TEXT type it show the contents as MEMO. This behavior could be changed in prior versions unchecking the "Text as LongVarChar" option and checking the "Longest" option in the "Unknown Sizes" section.Now, it can be fixed only changing the "Max LongVarchar" edit to 254. It looks like the driver it is not using the "longest" option in the configuration.No - longest doesn't work anymore because there is no sensible way to figure it out with the libpq driver architecture. It was only ever there to support pre-6.4 servers that couldn't report the defined column width (see the config.htm doc for details).That aside, shouldn't TEXT equate to MEMO anyway?
If you open the database schema with the sql explorer it does not show all the tables, and each table that it shows appears 6 times. It is easy to reproduce, because it happens with all the system tables.Please try 08.01.0101.
Regards, Dave.
DbX.DbI was not found or identified. It is needed to explore databases
From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Miguel Juan
Sent: 15 November 2005 15:08
To: Dave Page
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] psqlOdbc Ansi + BDE issuesHello,----- Original Message -----From: Dave PageSent: Tuesday, November 15, 2005 11:08 AMSubject: Re: [ODBC] psqlOdbc Ansi + BDE issues
From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Miguel Juan
Sent: 11 November 2005 12:56
To: pgsql-odbc@postgresql.org
Subject: [ODBC] psqlOdbc Ansi + BDE issuesHi,I'm testing the Ansi version of the psqlodbc-08.01.0100 and I have found a few isues.If you open a table with the BDE SQL explorer, now it shows all the text fields (char, varchar and text), but for the TEXT type it show the contents as MEMO. This behavior could be changed in prior versions unchecking the "Text as LongVarChar" option and checking the "Longest" option in the "Unknown Sizes" section.Now, it can be fixed only changing the "Max LongVarchar" edit to 254. It looks like the driver it is not using the "longest" option in the configuration.No - longest doesn't work anymore because there is no sensible way to figure it out with the libpq driver architecture. It was only ever there to support pre-6.4 servers that couldn't report the defined column width (see the config.htm doc for details).That aside, shouldn't TEXT equate to MEMO anyway?Sure yes, but before (version 7.x) TEXT equate to VARCHAR if the longest size is under 255 characters, and this change the behavior of some Delphi components, such as TDataGrid, etc. Anyway, it could be solved easily with a few lines of code.If you open the database schema with the sql explorer it does not show all the tables, and each table that it shows appears 6 times. It is easy to reproduce, because it happens with all the system tables.Please try 08.01.0101.Now it shows each system table about four times, and each user table about three times. Still not showing all the tables in the database.Regards, Dave.Regards,Miguel Juan
From: Miguel Juan [mailto:mjuan@cibal.es]
Sent: 23 November 2005 16:07
To: Dave Page
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] psqlOdbc Ansi + BDE issuesHello,I have checked (and reinstalled) de psqlODBC driver. The Windows ODBC Administrator says that I have the "psqlODBC 8.01.01.01" and is using the file "psqlodbcA.dll" with date 11/11/2005.I have been 'playing' with some ODBC options and I have found that the problem is produced by the 'Use declare fetch' option. If it is unchecked the SQL explorer works OK. Otherwise, if it's checked each table appears a few times, depending on the number of tables in the database.
From: Dave PageTo: Miguel JuanSent: Monday, November 21, 2005 9:36 AMSubject: RE: [ODBC] psqlOdbc Ansi + BDE issues
From: Miguel Juan [mailto:mjuan@cibal.es]
Sent: 20 November 2005 17:27
To: Dave Page
Subject: Re: [ODBC] psqlOdbc Ansi + BDE issuesHello Dave,Sorry, I forgot to include that file in the installation. I am sending it attached to this mail. Also, I can send you a new installation, but it will not be available until Tuesday.Thanks - that got it. It also shows all the tables perfectly with no duplication at all. Are you definately running 08.01.0101?Regards, Dave
Hello, > the problem is produced by the 'Use declare fetch' option. If it > is unchecked the SQL explorer works OK. Otherwise, if it's checked > each table appears a few times, depending on the number of tables > in the database. Not so exactly. It depend on the number of tables _and_ cache size parametr. The problem is in fetching all rows in PGAPI_Tables but excepting only "cache size" entries in PGAPI_ExtendedFetch. I attach one line patch. Try it and report next problems. Best regards, Luf
Attachment
> -----Original Message----- > From: Ludek Finstrle [mailto:luf@pzkagis.cz] > Sent: 27 November 2005 22:01 > To: Miguel Juan > Cc: Dave Page; pgsql-odbc@postgresql.org > Subject: Re: [ODBC] psqlOdbc Ansi + BDE issues > > Hello, > > > the problem is produced by the 'Use declare fetch' option. If it > > is unchecked the SQL explorer works OK. Otherwise, if it's checked > > each table appears a few times, depending on the number of tables > > in the database. > > Not so exactly. It depend on the number of tables _and_ cache size > parametr. The problem is in fetching all rows in PGAPI_Tables > but excepting only "cache size" entries in PGAPI_ExtendedFetch. > > I attach one line patch. Try it and report next problems. Thanks Ludek - works nicely here. Patch applied. Regards, Dave