File: ltree_del_col.sql

package info (click to toggle)
goiardi 0.11.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,708 kB
  • sloc: sql: 4,994; makefile: 156; sh: 95; python: 30
file content (9 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
-- Verify ltree_del_col

BEGIN;

INSERT INTO goiardi.search_collections (name, organization_id) VALUES ('foo', 1);
INSERT INTO goiardi.search_items (organization_id, search_collection_id, item_name, value, path) VALUES (1, (SELECT id FROM goiardi.search_collections WHERE name = 'foo' and organization_id = 1), 'beep', 'baz', 'hoo.moo.noo');
SELECT goiardi.delete_search_collection('foo', 1);

ROLLBACK;