Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isql: show table T; => Statement failed, SQLCODE = -802 [CORE2391] #2812

Closed
firebird-automations opened this issue Mar 26, 2009 · 9 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Stéphane Millien (smillien62)

Duplicates CORE1690

The command "SHOW TABLE <my_table>;" doesn't work with all tables from my database. Only on my linux server.
It works fine with "rdb$..." tables.
I have no problem with isql from my WinXP environment.

On linux (with PuTTY) :
SQL> set names UTF8;
SQL> connect localhost:photos-data user MILLIEN password ***;
Database: localhost:photos-data, User: MILLIEN
SQL> show table auteurs;
ID_AUTEUR (DOM_ID_AUTEUR) SMALLINT Not Null DEFAULT 0
AUTEUR (DOM_AUTEUR) VARCHAR(30) CHARACTER SET ISO8859_1 Not Null
COLLATE FR_FR
Statement failed, SQLCODE = -802
arithmetic exception, numeric overflow, or string truncation
Command error: show table auteurs
SQL>

On WinXP (with cmd.exe) on the same database :
SQL> set names DOS852;
SQL> connect victor:photos-data user millien password ***;
Database: victor:photos-data, User: millien
SQL> show table auteurs;
ID_AUTEUR (DOM_ID_AUTEUR) SMALLINT Not Null DEFAULT 0
AUTEUR (DOM_AUTEUR) VARCHAR(30) CHARACTER SET ISO8859_1 Not Null
COLLATE FR_FR
CONSTRAINT PK_AUTEURS:
Primary key (ID_AUTEUR) uses explicit ascending index IDX_PK_AUTEURS

Triggers on Table AUTEURS:
AUTEUR_AIU_10, Sequence: 10, Type: AFTER INSERT OR UPDATE, Active

--
Best regards,
Stéphane.

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Confirm that you are running the Firebird ISQL tool.

Unfortunately, there are several ISQL versions, some of which are for other engines which are commonly installed on Linux (ProgresSQL is one).

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Duplicates CORE1690. I'll look on the possibility to backport it.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Duplicate [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Link: This issue duplicates CORE1690 [ CORE1690 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Stéphane Millien (smillien62)

Hi, yes I use the isql tool provided with Firebird 2.1.1

root@victor:~#⁠ ll /bin/is*
lrwxrwxrwx 1 root root 22 2008-02-22 22:50 /bin/isql -> /opt/firebird/bin/isql

root@victor:~#⁠ isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> show version;
ISQL Version: LI-V2.1.1.17910 Firebird 2.1
Server version:
Cannot get server version without database connection
SQL>

@firebird-automations
Copy link
Collaborator Author

Commented by: Stéphane Millien (smillien62)

If I don't use the command "set names UTF8;" before connecting to the database, I have no problème with "show table ...".
But I get wrong text in select queries... :-(

I can't see the query in mon$statements when I do a "show table" :-(

--
Stéphane.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Fix for CORE1690 is backported to v2.1.3.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant