fix: Fix ordering with mutation queries

This commit is contained in:
Taimoor Zaeem
2025-03-17 14:13:34 +01:00
committed by Steve Chavez
parent 5ff51de36f
commit fc35d6d0f8
8 changed files with 97 additions and 4 deletions
+17
View File
@@ -3762,3 +3762,20 @@ $$ language sql;
create function test.text_search_vector(test.tsearch_to_tsvector) returns tsvector AS $$
select to_tsvector('simple', $1.text_search)
$$ language sql;
-- to test ordering with mutations
CREATE TABLE test.artists (
id int PRIMARY KEY,
name text
);
CREATE TABLE test.albums (
id int PRIMARY KEY,
title text,
artist_id int,
CONSTRAINT fk_artist
FOREIGN KEY (artist_id) REFERENCES artists (id)
ON UPDATE CASCADE
ON DELETE CASCADE
);