-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
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
Add EntityClass#test(id) and support update { it[nullable] = nullable } #1277
Open
vlsi
wants to merge
7
commits into
JetBrains:main
Choose a base branch
from
vlsi:issues_1275_1276
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Jun 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1b24418 - Browse repository at this point
Copy the full SHA 1b24418View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2df46d - Browse repository at this point
Copy the full SHA c2df46dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c616ec - Browse repository at this point
Copy the full SHA 2c616ecView commit details -
Support update { it[column] = nullableValue }
Key change is UpdateBuilder#setWithEntityIdValue, which now accepts column: Column<out EntityID<S>?>, value: S? previous signature was column: Column<out EntityID<S>>, value: S? A downside is that "[optionalReferenceColumn] = null" can't decide between "null as ColumnType?" and "null as EntityID<ColumnType>?" update { // it[optionalReferenceColumn] = null // <- does not work // Workaround: specify null type explicitly to call the proper overload it[optionalReferenceColumn] = null as EntityID<ColumnType>? // The following works as well: // it[optionalReferenceColumn] = null as ColumnType? } fixes JetBrains#1275
Configuration menu - View commit details
-
Copy full SHA for 24c731a - Browse repository at this point
Copy the full SHA 24c731aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 97fc481 - Browse repository at this point
Copy the full SHA 97fc481View commit details -
Improve error reporting when user inserts NULL into non-nullable column
* Exception message would include the relevant table and column name * LiteralOp(...) and QueryParameter(...) would fail if user creates NULL value for non-nullable type * Single-value QueryBuilder#registerArgument is slightly faster as it no longer creates list fixes JetBrains#1268
Configuration menu - View commit details
-
Copy full SHA for c9c87c3 - Browse repository at this point
Copy the full SHA c9c87c3View commit details
Commits on Jun 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f0029de - Browse repository at this point
Copy the full SHA f0029deView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.