-
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.
comment per statement to disable static validation
- Loading branch information
Showing
8 changed files
with
240 additions
and
441 deletions.
There are no files selected for viewing
403 changes: 0 additions & 403 deletions
403
sample/definitions/function/static_error_disabled.pgsql.json
This file was deleted.
Oops, something went wrong.
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
184 changes: 184 additions & 0 deletions
184
sample/definitions/trigger/static_error_disabled.pgsql.json
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,184 @@ | ||
[ | ||
{ | ||
"RawStmt": { | ||
"stmt": { | ||
"DropStmt": { | ||
"objects": [ | ||
{ | ||
"List": { | ||
"items": [ | ||
{ | ||
"String": { | ||
"str": "users_2" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"removeType": "OBJECT_TABLE", | ||
"behavior": "DROP_CASCADE", | ||
"missing_ok": true | ||
} | ||
}, | ||
"stmt_len": 36 | ||
} | ||
}, | ||
{ | ||
"RawStmt": { | ||
"stmt": { | ||
"CreateStmt": { | ||
"relation": { | ||
"relname": "users_2", | ||
"inh": true, | ||
"relpersistence": "p" | ||
}, | ||
"tableElts": [ | ||
{ | ||
"ColumnDef": { | ||
"colname": "id", | ||
"typeName": { | ||
"names": [ | ||
{ | ||
"String": { | ||
"str": "pg_catalog" | ||
} | ||
}, | ||
{ | ||
"String": { | ||
"str": "int4" | ||
} | ||
} | ||
], | ||
"typemod": -1 | ||
}, | ||
"is_local": true, | ||
"constraints": [ | ||
{ | ||
"Constraint": { | ||
"contype": "CONSTR_NOTNULL" | ||
} | ||
}, | ||
{ | ||
"Constraint": { | ||
"contype": "CONSTR_PRIMARY" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"oncommit": "ONCOMMIT_NOOP" | ||
} | ||
}, | ||
"stmt_len": 60 | ||
} | ||
}, | ||
{ | ||
"RawStmt": { | ||
"stmt": { | ||
"CreateFunctionStmt": { | ||
"replace": true, | ||
"funcname": [ | ||
{ | ||
"String": { | ||
"str": "update_updated_at_column" | ||
} | ||
} | ||
], | ||
"returnType": { | ||
"names": [ | ||
{ | ||
"String": { | ||
"str": "trigger" | ||
} | ||
} | ||
], | ||
"typemod": -1 | ||
}, | ||
"options": [ | ||
{ | ||
"DefElem": { | ||
"defname": "language", | ||
"arg": { | ||
"String": { | ||
"str": "plpgsql" | ||
} | ||
}, | ||
"defaction": "DEFELEM_UNSPEC" | ||
} | ||
}, | ||
{ | ||
"DefElem": { | ||
"defname": "as", | ||
"arg": { | ||
"List": { | ||
"items": [ | ||
{ | ||
"String": { | ||
"str": "\nbegin\n new.updated_at = NOW();\n return new;\nend;\n" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"defaction": "DEFELEM_UNSPEC" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"stmt_len": 171 | ||
} | ||
}, | ||
{ | ||
"RawStmt": { | ||
"stmt": { | ||
"CreateTrigStmt": { | ||
"trigname": "update_users_2_modtime_disabled", | ||
"relation": { | ||
"relname": "users_2", | ||
"inh": true, | ||
"relpersistence": "p" | ||
}, | ||
"funcname": [ | ||
{ | ||
"String": { | ||
"str": "update_updated_at_column" | ||
} | ||
} | ||
], | ||
"row": true, | ||
"timing": 2, | ||
"events": 16 | ||
} | ||
}, | ||
"stmt_len": 195 | ||
} | ||
}, | ||
{ | ||
"RawStmt": { | ||
"stmt": { | ||
"CreateTrigStmt": { | ||
"trigname": "update_users_2_modtime", | ||
"relation": { | ||
"relname": "users_2", | ||
"inh": true, | ||
"relpersistence": "p" | ||
}, | ||
"funcname": [ | ||
{ | ||
"String": { | ||
"str": "update_updated_at_column" | ||
} | ||
} | ||
], | ||
"row": true, | ||
"timing": 2, | ||
"events": 16 | ||
} | ||
}, | ||
"stmt_len": 148 | ||
} | ||
} | ||
] |
File renamed without changes.
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 |
---|---|---|
|
@@ -347,7 +347,7 @@ | |
"events": 16 | ||
} | ||
}, | ||
"stmt_len": 190 | ||
"stmt_len": 148 | ||
} | ||
}, | ||
{ | ||
|
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
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
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