Skip to content

Bad error messages on SELECT ? FROM [CORE218] #547

Open
@firebird-automations

Description

@firebird-automations

Submitted by: askln (askln)

SFID: 796675#⁠
Submitted By: askln

Given

CREATE TABLE t (id INTEGER);

the following statements give corresponding errors:

1) SELECT ? FROM t => Data type unknown
2) SELECT id + ? FROM t => expression evaluation not
supported
3) SELECT id * ? FROM t => Array/BLOB/DATE data types
not allowed in arithmetic

While 1) is technically correct, it is misleading in a
sense that user believes that something like SELECT
CAST(? AS INTEGER) might work, which of course does not :)
So I think that only the second message is correct.

Tested with FB 1.0.3 and 1.5RC5 on Windows, using IBX
and IBO.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions