File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect
hibernate-core/src/main/java/org/hibernate/dialect Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ mariadb_setup() {
219
219
}
220
220
221
221
postgresql () {
222
- postgresql_17
222
+ postgresql_18
223
223
}
224
224
225
225
postgresql_13 () {
@@ -262,6 +262,14 @@ postgresql_17() {
262
262
postgresql_setup
263
263
}
264
264
265
+ postgresql_18 () {
266
+ $CONTAINER_CLI rm -f postgres || true
267
+ $CONTAINER_CLI run --name postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -p5432:5432 --tmpfs /var/lib/postgresql -d ${DB_IMAGE_POSTGRESQL_17:- docker.io/ postgis/ postgis: 18-3.6} \
268
+ -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c shared_buffers=256MB -c maintenance_work_mem=256MB -c max_wal_size=1GB -c checkpoint_timeout=1d
269
+ $CONTAINER_CLI exec postgres bash -c ' /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && apt install -y postgresql-18-pgvector'
270
+ postgresql_setup
271
+ }
272
+
265
273
postgresql_setup () {
266
274
databases=()
267
275
for n in $( seq 1 $DB_COUNT )
Original file line number Diff line number Diff line change @@ -613,6 +613,7 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
613
613
functionFactory .initcap ();
614
614
functionFactory .substr ();
615
615
functionFactory .substring_substr ();
616
+ functionFactory .reverse ();
616
617
//also natively supports ANSI-style substring()
617
618
functionFactory .translate ();
618
619
functionFactory .toCharNumberDateTimestamp ();
@@ -917,6 +918,13 @@ public boolean supportsCaseInsensitiveLike() {
917
918
return true ;
918
919
}
919
920
921
+ @ Override
922
+ public String generatedAs (String generatedAs ) {
923
+ return getVersion ().isSameOrAfter ( 18 )
924
+ ? " generated always as (" + generatedAs + ")"
925
+ : super .generatedAs ( generatedAs );
926
+ }
927
+
920
928
@ Override
921
929
public GenerationType getNativeValueGenerationStrategy () {
922
930
return GenerationType .SEQUENCE ;
Original file line number Diff line number Diff line change @@ -574,6 +574,7 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
574
574
functionFactory .substr ();
575
575
functionFactory .substring_substr ();
576
576
//also natively supports ANSI-style substring()
577
+ functionFactory .reverse ();
577
578
functionFactory .translate ();
578
579
functionFactory .toCharNumberDateTimestamp ();
579
580
functionFactory .concat_pipeOperator ( "convert_from(lo_get(?1),pg_client_encoding())" );
@@ -897,6 +898,13 @@ public boolean supportsCaseInsensitiveLike() {
897
898
return true ;
898
899
}
899
900
901
+ @ Override
902
+ public String generatedAs (String generatedAs ) {
903
+ return getVersion ().isSameOrAfter ( 18 )
904
+ ? " generated always as (" + generatedAs + ")"
905
+ : super .generatedAs ( generatedAs );
906
+ }
907
+
900
908
@ Override
901
909
public GenerationType getNativeValueGenerationStrategy () {
902
910
return GenerationType .SEQUENCE ;
You can’t perform that action at this time.
0 commit comments