fix: Fix ordering with mutation queries
This commit is contained in:
committed by
Steve Chavez
parent
5ff51de36f
commit
fc35d6d0f8
Vendored
+17
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user