Anko: Third SqlTypeModifier outputs instance name in createTable

Created on 17 May 2017  路  5Comments  路  Source: Kotlin/anko

Adding 3 SqlTypeModifiers to a createTable call results in it outputting it's instance name instead of properly appending it's text to the query:

        db.createTable("tools", true,
                "mac" to TEXT + PRIMARY_KEY + UNIQUE,
                "type" to TEXT,
                "lastAdvertisement" to TEXT)

Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(near "org": syntax error (code 1): , while compiling: CREATE TABLE IF NOT EXISTS tools(mac TEXT PRIMARY KEY org.jetbrains.anko.db.SqlTypeModifierImpl@82ed13f, type TEXT, lastAdvertisement TEXT);)

Anko Layouts bug critical

Most helpful comment

I think this isn't fixed in the 1.10.1 source file (nor built through Gradle).
The master is fixed, but the changes are not included in the release somehow

EDIT
1.10.0 was OK, it reverted in 1.10.1

All 5 comments

Turns out to have been a pretty simple oversight and a quick fix:

374

Thank you for the contribution!

I think this isn't fixed in the 1.10.1 source file (nor built through Gradle).
The master is fixed, but the changes are not included in the release somehow

EDIT
1.10.0 was OK, it reverted in 1.10.1

This is true, just a small comment that the version is 0.10.0 that works and 0.10.1 doesn't have the fix.

Fixed with a9fb4771c4ac8a211839bdb9174bf967595a36aa

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndwareSsj picture AndwareSsj  路  4Comments

bapspatil picture bapspatil  路  4Comments

telenc picture telenc  路  3Comments

HarryTylenol picture HarryTylenol  路  4Comments

s949492225 picture s949492225  路  4Comments