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

Skip to content

Generated SQL code has quotes when using schema.table format #183

@tromper

Description

@tromper

I'm trying to use ktorm to access some views on a SQL Server database. The views are under a schema. With exposed, I just made the table names in the format schema.tablename and the generated SQL code worked fine. With ktorm, I am getting generated SQL code where the schema.table name is getting double quoted, and I get an invalid object name back from jdbc. For example, if I have "test.gender" as the table name in the object, ktorm generates

SELECT * FROM "test.gender" (DOESN'T WORK)

If I use the same db connection, but the Native SQL approach without the double quotes to debug,it works fine

SELECT * FROM test.gender (WORKS)

I really prefer the simplicity and syntax of ktorm compared to Exposed, but I haven't been able to get very far :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions