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

Duplicated columns in the parameter list of slice() caused unexpected value in ResultRow #581

Closed
KaltZK opened this issue Jun 14, 2019 · 0 comments
Labels

Comments

@KaltZK
Copy link

KaltZK commented Jun 14, 2019

Kotlin Version: 1.3.21
Exposed Version: 0.13.3

Valid code:

val row = MyTable
            .slice(
                    MyTable.description,
                    MyTable.itemId
            )
            .selectAll().first()
    println(row)

my_table.description=MyDesc, my_table.item_id=MyItemId

Invalid code:

val row = MyTable
            .slice(
                    MyTable.description,
                    MyTable.description,
                    MyTable.itemId
            )
            .selectAll().first()
    println(row)

my_table.description=MyDesc, my_table.item_id=MyDesc

The value of MyTable.itemId was replaced in silence.

@Tapac Tapac added the bug label Jun 14, 2019
Tapac added a commit that referenced this issue Jun 15, 2019
@Tapac Tapac closed this as completed Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants