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 EXISTStools(mac TEXT PRIMARY KEY org.jetbrains.anko.db.SqlTypeModifierImpl@82ed13f, type TEXT, lastAdvertisement TEXT);)
Turns out to have been a pretty simple oversight and a quick fix:
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
Most helpful comment
I think this isn't fixed in the
1.10.1source file (nor built through Gradle).The master is fixed, but the changes are not included in the release somehow
EDIT
1.10.0was OK, it reverted in1.10.1