You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE TABLE SomeTable (
...
field TEXT AS CustomType NOT NULL
);
selectSum:
SELECT SUM(field) FROM SomeTable;
selectSum:
SELECT COALESCE(field, CustomType(defaultValue)) FROM SomeTable;
For now SUM return Double value and cannot set default value to COALESCE.
Idea:
Add some override fun to Adapder
ColumnAdapter<CustomType, String> {
override fun decode(databaseValue: String)
override fun encode(value: CustomType)
override fun sum(value: CustomType, value2: CustomType)
override fun coalesce(value: CustomType, defaultValue: CustomType)
}
The text was updated successfully, but these errors were encountered:
We really try to avoid changing the sql dialect because this make many thinks way harder, sql itself is often ambiguous. There is a similar issue and maybe we will add it somehow: #3421 (comment)
Description
For now SUM return Double value and cannot set default value to COALESCE.
Idea:
Add some override fun to Adapder
The text was updated successfully, but these errors were encountered: