diff options
| author | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-01-23 10:51:33 +0100 |
|---|---|---|
| committer | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-01-23 10:51:33 +0100 |
| commit | a911e95665b303a898d6e2de44a1327c0c271c8f (patch) | |
| tree | 4fff57ba3f3bcee53a72e70fdb9035f9faf374ba /tests/files | |
| parent | 4b701a7a724696540ca9ff60896ca0546e2a197b (diff) | |
| download | sqlparse-a911e95665b303a898d6e2de44a1327c0c271c8f.tar.gz | |
Added test for Issue 57
Diffstat (limited to 'tests/files')
| -rw-r--r-- | tests/files/begintag_2.sql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/files/begintag_2.sql b/tests/files/begintag_2.sql new file mode 100644 index 0000000..0de26d6 --- /dev/null +++ b/tests/files/begintag_2.sql @@ -0,0 +1,13 @@ +CREATE TRIGGER IF NOT EXISTS remove_if_it_was_the_last_file_link +-- Delete the direntry when is removed it's last static link + AFTER DELETE ON links + WHEN NOT EXISTS + ( + SELECT * FROM links + WHERE child_entry = OLD.child_entry + LIMIT 1 + ) +BEGIN + DELETE FROM dir_entries + WHERE dir_entries.inode = OLD.child_entry; +END;
\ No newline at end of file |
