We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class SqliteTest { object Tests : IntIdTable() { val name = varchar("name", length = 50) // Column<String> val dateTime = datetime("date-time").clientDefault { DateTime() }.nullable() } @Test fun test1() { val db = Database.connect("jdbc:sqlite:file:mem:test", driver = "org.sqlite.JDBC") var list1: List<ResultRow>? = null transaction(db) { SchemaUtils.create(Tests) Tests.insert { it[name] = "test1" } list1 = Tests.selectAll().toList() list1?.forEach { println(it[Tests.name]) println(it[Tests.dateTime]) } } list1?.forEach { println(it[Tests.name]) println(it[Tests.dateTime])// if println this line show "No transaction in context." } } }
datetime field transaction outside error No transaction in context.
The text was updated successfully, but these errors were encountered:
sqlite datetime No transaction in context. #1130
3491732
Is it possible to release a new version, thanks.
Sorry, something went wrong.
Will be released next week, still need to check a few more issues.
No branches or pull requests
datetime field transaction outside error No transaction in context.
The text was updated successfully, but these errors were encountered: