Board index » delphi » IBX 4.2 BUG with no uppercase table names

IBX 4.2 BUG with no uppercase table names

Using IBX 4.2 and having created a database using QuickDesk
administration program, I have table names in lowercase with capital
letter (i.e. Customers, Employers, etc.).
When I try to open a TDataSet or a TTable against one of that tables,
the error "Dynamic SQL error SQL error code = -204 Table unknown
CUSTOMERS" appears. If I create a table with uppercase name, everything
goes good.
It can be a QuickDesk fault letting create a lowercase table name, but:
a) IB6 lets you doing it, so IBX should get care of it too
b) IBConsole has no problems in opening the lowercase tables
c) QuickDesk has no problems in opening lowercase tables too

Seems that IBX, even if the table name property has right case value
(i.e. "Employers"), internally converts it to uppercase. It shoud
perform caseinsensitive... or at least keep the case as specified in the
property or in the SQL statement (but SQL statement is usually not case
sensitive on table names... ins't it?).

Please, give me a quick patch :))
Marco Menardi

 

Re:IBX 4.2 BUG with no uppercase table names


You did remember to set the SQLDialect for the IBDatabase to 3 instead of the
default of 1 right?

Quote
Marco Menardi wrote:

> Using IBX 4.2 and having created a database using QuickDesk
> administration program, I have table names in lowercase with capital
> letter (i.e. Customers, Employers, etc.).
> When I try to open a TDataSet or a TTable against one of that tables,
> the error "Dynamic SQL error SQL error code = -204 Table unknown
> CUSTOMERS" appears. If I create a table with uppercase name, everything
> goes good.
> It can be a QuickDesk fault letting create a lowercase table name, but:
> a) IB6 lets you doing it, so IBX should get care of it too
> b) IBConsole has no problems in opening the lowercase tables
> c) QuickDesk has no problems in opening lowercase tables too

> Seems that IBX, even if the table name property has right case value
> (i.e. "Employers"), internally converts it to uppercase. It shoud
> perform caseinsensitive... or at least keep the case as specified in the
> property or in the SQL statement (but SQL statement is usually not case
> sensitive on table names... ins't it?).

> Please, give me a quick patch :))
> Marco Menardi

--
Jeff Overcash (TeamB)
      (Please do not email me directly unless  asked. Thank You)
Have you ever met a lady screaming angst potential?
Have you ever dreamed of romance no matter how experimental?
Have you ever felt an alien drifting back into your hometown?
Did you think you were buying safety when you bought that piece of ground?
             (Fish)

Re:IBX 4.2 BUG with no uppercase table names


Quote
"Jeff Overcash (TeamB)" wrote:

> You did remember to set the SQLDialect for the IBDatabase to 3 instead of the
> default of 1 right?

Right. My TIBDatabase has SQLDialect property set to 3. Is there the
only place to set it? If so I'm right.
Marco Menardi

Re:IBX 4.2 BUG with no uppercase table names


What does your SQL look like?  Are you quoting the table name?  All my testing
shows that it is still handling cases correctly for dialect 3 DBs.

Quote
Marco Menardi wrote:

> "Jeff Overcash (TeamB)" wrote:

> > You did remember to set the SQLDialect for the IBDatabase to 3 instead of the
> > default of 1 right?

> Right. My TIBDatabase has SQLDialect property set to 3. Is there the
> only place to set it? If so I'm right.
> Marco Menardi

--
Jeff Overcash (TeamB)
      (Please do not email me directly unless  asked. Thank You)
Have you ever met a lady screaming angst potential?
Have you ever dreamed of romance no matter how experimental?
Have you ever felt an alien drifting back into your hometown?
Did you think you were buying safety when you bought that piece of ground?
             (Fish)

Re:IBX 4.2 BUG with no uppercase table names


In article <397C4044.FD05C...@onramp.net>,
  "Jeff Overcash (TeamB)" <overc...@onramp.net> wrote:

Quote
> All my testing
> shows that it is still handling cases correctly for dialect 3 DBs.

Still?!? What about those mixed-case stored procs??

John

Sent via Deja.com http://www.deja.com/
Before you buy.

Re:IBX 4.2 BUG with no uppercase table names


Quote
"Jeff Overcash (TeamB)" wrote:

> What does your SQL look like?  Are you quoting the table name?  All my testing
> shows that it is still handling cases correctly for dialect 3 DBs.

Ok, if I quote the table name, then the IBDataset opens correctly, i.e.
select * from "Ambiti" // WORKS!!!
select * from Ambiti   // does not work

but if I use IBTable, the property
TableName Ambiti
or
TableName "Ambiti"
produces the same error.

Sorry, I did not know that I had to quote table names that have not
space in between... (in IBConsole and QuickDesk same behaviour than in
IBX)

So the bug is only regarding IBTable...
Thanks for your support
Marco Menardi

Re:IBX 4.2 BUG with no uppercase table names


Quote
Marco Menardi wrote:

> Ok, if I quote the table name, then the IBDataset opens correctly, i.e.
> select * from "Ambiti" // WORKS!!!
> select * from Ambiti   // does not work

That is exactly how it should work.  All non quoted identifiers will ne
uppercased by default since that is how IB itself will treat unquoted
identifiers.  The same will be true for column names.

Quote
> but if I use IBTable, the property
> TableName Ambiti
> or
> TableName "Ambiti"
> produces the same error.

I'll look at this, but it should automatically quote the table name (that code
was not touched for 4.2 and is the same as 4.1 and 4.0 updates).

Quote
> Sorry, I did not know that I had to quote table names that have not
> space in between... (in IBConsole and QuickDesk same behaviour than in
> IBX)

IBConsole use IBX.

Quote
> So the bug is only regarding IBTable...
> Thanks for your support
> Marco Menardi

--
Jeff Overcash (TeamB)
      (Please do not email me directly unless  asked. Thank You)
Have you ever met a lady screaming angst potential?
Have you ever dreamed of romance no matter how experimental?
Have you ever felt an alien drifting back into your hometown?
Did you think you were buying safety when you bought that piece of ground?
             (Fish)

Other Threads