Skip to content

Instantly share code, notes, and snippets.

View Tapac's full-sized avatar

Andrey.Tarashevskiy Tapac

  • JetBrains
  • Finland
View GitHub Profile
@Tapac
Tapac / perf.patch
Created August 12, 2021 17:34
Perf test patch
Index: src/main/kotlin/ExposedTest.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/kotlin/ExposedTest.kt b/src/main/kotlin/ExposedTest.kt
--- a/src/main/kotlin/ExposedTest.kt (revision f98b59de55a6b70d25ce74a3ca2d6d07bcf87d66)
+++ b/src/main/kotlin/ExposedTest.kt (revision a9b34936c5070c4a2d7ce0949443e0a6097d7e2a)
@@ -21,17 +21,21 @@
val url =
@Tapac
Tapac / db2-tests.patch
Created May 12, 2021 23:03
Exposed DB2 tests patch
Index: exposed-tests/src/main/kotlin/org/jetbrains/exposed/sql/tests/DatabaseTestsBase.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/exposed-tests/src/main/kotlin/org/jetbrains/exposed/sql/tests/DatabaseTestsBase.kt b/exposed-tests/src/main/kotlin/org/jetbrains/exposed/sql/tests/DatabaseTestsBase.kt
--- a/exposed-tests/src/main/kotlin/org/jetbrains/exposed/sql/tests/DatabaseTestsBase.kt (revision 3ad3164544e9c2b5cf4b6c53bf01c1b5fb005071)
+++ b/exposed-tests/src/main/kotlin/org/jetbrains/exposed/sql/tests/DatabaseTestsBase.kt (date 1620859726351)
@@ -92,11 +92,36 @@
),
@Tapac
Tapac / patch.patch
Created May 7, 2020 10:52
Exposed PR #857 patch
Index: exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/ResultRow.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/ResultRow.kt (revision 102977f24751ad482b317db90da026d7a9e17fb8)
+++ exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/ResultRow.kt (date 1588795290614)
@@ -26,7 +26,7 @@
}
Index: src/main/resources/application.conf
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/main/resources/application.conf (revision 0fa7ca32ce85a7888ff6df03cb01ae080bc4b74e)
+++ src/main/resources/application.conf (date 1551942564345)
@@ -1,7 +1,7 @@
ktor {
deployment {
package org.jetbrains.exposed.spring
import org.jetbrains.exposed.dao.EntityID
import org.jetbrains.exposed.dao.UUIDEntity
import org.jetbrains.exposed.dao.UUIDEntityClass
import org.jetbrains.exposed.dao.UUIDTable
import org.jetbrains.exposed.sql.SchemaUtils
import org.jetbrains.exposed.sql.transactions.transaction
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@Tapac
Tapac / ExposedDbExpression.kt
Created March 15, 2018 07:38
Test for defaultExpression with updates
@Test
fun testDefaultExpressions02() {
val foo = object : IntIdTable("foo") {
val name = text("name")
val defaultDateTime = datetime("defaultDateTime").defaultExpression(CurrentDateTime())
}
val nonDefaultDate = DateTime.parse("2000-01-01")
withTables(foo) {