-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests for correct schemas and fix naming
- Loading branch information
Showing
10 changed files
with
444 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
DROP TABLE IF EXISTS users_2 CASCADE; | ||
|
||
CREATE TABLE users_2 ( | ||
id integer not null PRIMARY KEY | ||
); | ||
|
||
create or replace function update_updated_at_column () | ||
returns trigger | ||
language plpgsql | ||
as $function$ | ||
begin | ||
new.updated_at = NOW(); | ||
return new; | ||
end; | ||
$function$; | ||
|
||
-- TODO some kind of flag for disabling static analysis only per statement | ||
-- plpgsql-language-server:disable-static | ||
create trigger update_users_2_modtime -- should raise error | ||
before update on users_2 for each row | ||
execute function update_updated_at_column (); |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.