Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Table names with dots not correctly handled (schema.table) #517

@TheNetworkIsDown

Description

@TheNetworkIsDown

Using a table name including a schema as in enterprise DBMSs like Oracle, ATK4 Data does not correctly escape the table names.

Example: The table name is "X.Y". The table name used in where clauses is not escaped correctly.

Actual

select ... where "x.y"."field" = "..." ...

Expected

select ... where "x"."y"."field" = "..." ...

Setting a table alias seems to be a workaround for SELECTs but even then UPDATE statements are affected.

Example:

Actual

update "x"."y" set "field"='abc' where "ALIAS"."field_id" = 1

Expected

update "x"."y" "ALIAS" set "field"='abc' where "ALIAS"."field_id" = 1

Or better (without alias)

update "x"."y" set "field"='abc' where "x"."y"."field_id" = 1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions