Tapac
50848d672b
QueryAlias.get(original: Expression<T>) lose query's alias #633
2020-02-27 01:14:18 +03:00
Tapac
f24107ae7e
Support custom foreign key naming ( #771 ).
...
Fix for the case when only referenced table used in create/createMissingTable
2020-02-26 23:14:52 +03:00
Tapac
34d9df83a1
HB not generate default value #810
2020-02-26 23:04:00 +03:00
Tapac
59465af04b
Support custom foreign key naming ( #771 )
...
ForeignKeyConstraint fields documentation
2020-02-26 22:19:37 +03:00
Tapac
f6123e0ebe
Minor improvements
2020-02-26 22:15:51 +03:00
Toshiaki Kameyama
1741416610
Support custom foreign key naming ( #771 )
2020-02-26 22:06:18 +03:00
Christophe Hesters
d512d18776
Correct precedence for arithmetic operators ( #788 )
...
* Add parentheses for arithmetic operators in sql builders
* Added unit test
* Re-use CustomOperator for arithmetic
2020-02-14 15:11:06 +03:00
hichem-fazai
cdbc588494
removing redundant code related to create sequence and adding [IF EXISTS] option in the "drop sequence" command. ( #789 )
...
* removing redundant code related to create sequence and adding [IF EXISTS] option to drop sequence
* indentation fix
2020-02-13 22:05:36 +03:00
dolgopolovwork
21e354d865
notInSubQuery functionality ( #791 )
2020-02-13 18:27:17 +03:00
hichem-fazai
f2334534c1
changing the uuid check regexp ( #779 )
2020-02-08 14:56:41 +03:00
Juan José González Abril
54682c79c2
[KDoc & Format] Table & Columns ( #778 )
...
* Add KDoc, fix formatting and reorganize code.
Create backing property for property `indices` to avoid cast to `MutableList`.
Refactor code to use `mutableListOf()` instead of `ArrayList()`.
Replace guard clause with kotlin function call.
Improve computation of `columns` property in `Join` class, use `flatMap` instead of `fold` to reduce the number of list creations.
Remove unused type parameter from `addColumn()` method.
Add indentity check to `equals` method in `Table` class.
* Add KDoc, fix formatting and reorganize code.
Replace call to `assert` with call to `require`.
Improved table checker on `Index` creation.
* Add KDoc, fix formatting and reorganize code.
Refactor `valueFromDB` function from numeric `ColumnType`s: specific return type, string parsing and throwing excaption.
* Added missing documentation and finishing touches.
2020-02-08 11:44:19 +03:00
hichem-fazai
b597d0a5a6
Adding create and drop database methods ( #782 )
...
* Adding create and drop database method
* Correct Create database statement in postgesql dialect
* Correct Create database statement in oracle and sqlserver dialects
2020-02-06 14:26:14 +03:00
Tapac
efa78df1ea
Unexpected value of type Int: 26 of org.jetbrains.exposed.dao.EntityID #501
2020-01-29 22:34:30 +03:00
Juan José González Abril
cfd14c5b86
[KDoc & Format] Database Dialects ( #769 )
...
* Add missing KDoc and format following the Kotlin Coding Convention
* Placed short comments in a single line
* Added property removed during merge in previous commit.
2020-01-25 19:32:49 +03:00
Andrey.Tarashevskiy
771a60f7e2
CustomOperator: minor code cleanup ( #753 )
2020-01-25 12:29:12 +03:00
François Gelineau
19d50073a5
Add a CustomOperator ( #753 )
2020-01-25 12:21:13 +03:00
Andrey.Tarashevskiy
05ffa6b1d9
Support create sequence statement with all sequence options ( #746 )
...
SQLServer jdbc driver doesn't support sequences in return values (https://github.com/microsoft/mssql-jdbc/issues/656 )
Tests fixed
2020-01-25 11:08:36 +03:00
Tapac
f26c1b15e3
Can't use eq on nullable entity column with non EntityID value ( #773 )
2020-01-24 02:06:06 +03:00
Tapac
709917e102
Support create sequence statement with all sequence options ( #746 )
...
Minor code improvements
2020-01-17 02:21:57 +03:00
hichem-fazai
bd1e5d3d47
Support create sequence statement with all sequence options ( #746 )
2020-01-17 02:09:05 +03:00
Tapac
18e07241cd
H2 downgraded 1.4.200 -> 1.4.199 due to broken Repeatable Read + Select ( https://github.com/h2database/h2database/issues/2191 )
2020-01-13 14:17:59 +03:00
Tapac
1c0e2c6f4a
Drivers updated in tests
2020-01-13 13:57:16 +03:00
kenta.koyama
c435a2bc8d
Add size property on ColumnMetadata class ( #747 )
...
* test getting column metadata correctly
* add size property on ColumnMetadata
2020-01-07 15:08:50 +03:00
hichem-fazai
3af66148d7
[SQLite] fixing a bug that happens when creating table with autoInc column and custom primarykey constraint name ( #755 )
2020-01-07 15:04:30 +03:00
Tapac
c897fdb455
Custom enumeration not working with default value #750
2020-01-04 00:20:36 +03:00
Tapac
d2db2c2ac8
Can't load implementation for DatabaseConnectionAutoRegistration #748
2020-01-03 23:26:02 +03:00
(´⌣`ʃƪ)
f27b6c0199
Change string length check to use codePointCount ( #745 )
2020-01-02 15:32:32 +03:00
Andrey.Tarashevskiy
05447ec198
Predefinded IntIdTable/LongIdTable/UUIDTable should respect deprecated primaryKey declaration.
2019-12-28 18:18:16 +03:00
Andrey.Tarashevskiy
0271b91a00
Add table name in warn message regarding of having both new and old primary key declarations
2019-12-28 18:16:45 +03:00
Tapac
f6b0beef7b
Batch insert throws irrelevant exception #741
2019-12-27 12:43:39 +03:00
Tapac
b811b8a8ce
More verbose error in BatchInsertStatement
2019-12-26 13:17:07 +03:00
hichem-fazai
cfa7bb5200
Primary key tests ( #740 )
2019-12-26 00:46:01 +03:00
Tapac
9142e64d7d
Adding the feature of defining the primarykey constraint name ( #725 )
...
Minor code improvements
2019-12-25 02:12:57 +03:00
hichem-fazai
ec25b1d44c
Adding the feature of defining the primarykey constraint name ( #725 )
...
* Adding the feature of defining the primarykey constraint name
* building primarykey constraint from PrimaryKey class columns
* resolve failed test (coding of this feature is not complete)
* enhancement
2019-12-24 19:25:58 +03:00
mpe85
2c45676458
Added transaction id to entity change event ( #734 )
2019-12-24 19:22:10 +03:00
hichem-fazai
3a5d0edb79
[BugFix] Prevent defining duplicated colum name in a table ( #719 )
...
* [BugFix] Prevent defining duplicated colum name in a table
* Update exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Table.kt
Co-Authored-By: Andrey.Tarashevskiy <fantocci@gmail.com >
* adding table name to error message of duplicate column name
* moving tests to seperate files
2019-12-18 00:06:55 +03:00
hichem-fazai
e636a4425d
Enable the use of binary type without length in oracle and postgresql… ( #716 )
2019-12-17 22:40:49 +03:00
Tapac
b7e6111827
query.empty() shouldn't add LIMIT 1 if query is marked as forUpdate() #684
2019-12-14 17:52:43 +03:00
Tapac
f09852ebb3
Kotlin 1.3.61
...
kotlin-coroutines 1.3.3
2019-12-14 11:59:16 +03:00
Tapac
593cd3f37f
query.empty() shouldn't add LIMIT 1 if query is marked as forUpdate() #684
2019-12-14 11:55:17 +03:00
Tapac
dbe547c507
Deprecated Query.orderBy functions with boolean sort parameter were removed
2019-12-14 11:50:28 +03:00
Tapac
22d7125fb1
Delayed DAO update flush causes unique constraint violation #717
2019-12-11 23:59:18 +03:00
Andrey.Tarashevskiy
317c441879
Replace using H2 in MySQL mode doesn't work when using pool (Hikari) #178
...
Failed after spliting into modules
2019-12-10 17:46:02 +03:00
Tapac
f7dd832f02
NoSuchElementException: List is empty on updating not flushed entities #708
2019-12-10 03:04:45 +03:00
Tapac
5e4559125b
Some documentation on Table.references
2019-12-10 02:12:40 +03:00
Tapac
7af8ebd2c5
Adding sql datetime functions year, day, hour, minute, second ( #707 ) / SQLServer SECOND support
2019-12-07 12:13:41 +03:00
Tapac
ef36138614
Adding sql datetime functions year, day, hour, minute, second ( #707 ) / SQLServer support
2019-12-07 12:04:25 +03:00
Andrey.Tarashevskiy
3732781a46
Compilation fix
2019-12-07 10:47:25 +03:00
Tapac
9602024a7a
Docs for selectBatched functions
2019-12-07 01:04:26 +03:00
Tapac
e3d9f2315f
More documentation
2019-12-06 22:49:21 +03:00