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

Query error when table name is passed on IntIdTable() #935

Closed
elluard-doinglab opened this issue Jun 1, 2020 · 1 comment
Closed

Query error when table name is passed on IntIdTable() #935

elluard-doinglab opened this issue Jun 1, 2020 · 1 comment

Comments

@elluard-doinglab
Copy link

Hello,

I've been developing DB Interface with Kotlin Exposed
and encountered some problem

My code is below

object Users : IntIdTable("User") {
val name : Column = varchar("name", 45)
val email : Column = varchar("email", 45)
val facebookID : Column = varchar("facebook_id", 45)
.....
}

and the error is

2020-06-01 11:24:58.208 WARN 8316 --- [nio-8080-exec-3] Exposed : Transaction attempt #2 failed: java.sql.SQLSyntaxErrorException: Unknown column 'User.' in 'field list'. Statement(s): SELECT User.id, User.name, User.email, User.facebook_id FROM User WHERE User.id = ?

I hope to use "Users" as DB interface object of Kotlin.

How can I specify the table name?

@elluard-doinglab
Copy link
Author

Sorry, It's my fault.
It is not a bug

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

No branches or pull requests

1 participant