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

"SQL Error: Error mapping failed" with Delphi 6 Application and DBX [CORE1513] #1929

Closed
firebird-automations opened this issue Sep 13, 2007 · 10 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Maycon Ferraca (ferraca)

Attachments:
BugFirebird21.zip
app.zip

Votes: 1

For to reproduce this error is necessary:
1) Run "create db.sql"
2) Run "project1.exe" (or its source) and click on "connection doesn't work" and after click on "run query 1". Any other click sequence works.

Ps.: The files there are the on attachment.

@firebird-automations
Copy link
Collaborator Author

Modified by: Maycon Ferraca (ferraca)

Attachment: app.zip [ 10621 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Maycon Ferraca (ferraca)

description: For to reproduce this error is necessary:
1) Run "create db.sql"
2) Run "project1.exe" or (its source) and click on "connection doesn't work" and after click on "run query 1". Any other click sequence works.

Ps.: The files there are the on attachment.

=>

For to reproduce this error is necessary:
1) Run "create db.sql"
2) Run "project1.exe" (or its source) and click on "connection doesn't work" and after click on "run query 1". Any other click sequence works.

Ps.: The files there are the on attachment.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 13286 ] => Firebird [ 14001 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Daniele Allegretti (mktsrl)

I have found this problem with Delphi6, DBExpress and Firebird 2.1.0.17798 Engine.
But I believe that this is not a problem of Firebird engine but a problem of the DLL client fbclient.dll.

I think this beacause if I use fbclient.dll of versione 2.0.4 (with engine 2.1.0) Delphi works correctly, instead if i use fbclient of 2.1.0 (with engine 2.1.0) pop-up the error "Error mapping failed" on first "SELECT" query.

Also with Embedded version 2.1.0 (fbembed.dll version 2.1.0.17798 renamed as GDS32.DLL) Delphi 6 works correcly.

Buon lavoro
Daniele Allegretti
MKT SRL
Italy

@firebird-automations
Copy link
Collaborator Author

Commented by: Daniele Allegretti (mktsrl)

Another information about this bug:
the problem there is only with remote (TCP) database connection and not with local connection.
For example this connection do error
Database := 127.0.0.1:C:\DEMO.FDB
and this no
Database := C:\DEMO.FDB

I upload a little project (with compiled exe) that generate 100% this error.

Thanks
Daniele Allegretti

@firebird-automations
Copy link
Collaborator Author

Commented by: Daniele Allegretti (mktsrl)

Another information about this bug (WITH FILE UPLOADED):
the problem there is only with remote (TCP) database connection and not with local connection.
For example this connection do error
Database := 127.0.0.1:C:\DEMO.FDB
and this no
Database := C:\DEMO.FDB

I upload a little project (with compiled exe) that generate 100% this error.

Thanks
Daniele Allegretti

[ Show » ] Daniele Allegretti - [21/May/08 03:54 AM ] Another information about this bug: the problem there is only with remote (TCP) database connection and not with local connection. For example this connection do error Database := 127.0.0.1:C:\DEMO.FDB and this no Database := C:\DEMO.FDB I upload a little project (with compiled exe) that generate 100% this error.

Thanks
Daniele Allegretti

@firebird-automations
Copy link
Collaborator Author

Modified by: Daniele Allegretti (mktsrl)

Attachment: BugFirebird21.zip [ 10900 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Actually, the issue is inside Borland's DBX driver for InterBase. It's not very much compatible with Firebird. First of all, it uses some internal (metadata) queries in the syntax FB dislikes, thus causing an error. Second, it seems to handle the API errors improperly and this is exactly the difference between FB v2.0 and v2.1. If you'd try e.g. the Upscene DBX driver for Firebird, you'd notice that all test cases work correctly with both FB v2.0 and v2.1. As for the Borland's driver, the only suggestion I have is to turn off the "Get Metadata" property of TSQLDataSet.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Won't Fix [ 2 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

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