-
Notifications
You must be signed in to change notification settings - Fork 0
ewie/sqitch-namelen
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Demo for detecting truncated Postgres identifiers in Sqitch $ createdb test $ export SQITCH_TARGET=db:pg:test $ ./test.sh 63 Deploying changes to db:pg:test + namelen .. ok Reverting all changes from db:pg:test Will revert the following changes: namelen - namelen .. ok $ echo $? 0 $ ./test.sh 64 Deploying changes to db:pg:test + namelen .. psql:deploy/namelen.sql:5: NOTICE: identifier "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" will be truncated to "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ok Reverting all changes from db:pg:test Will revert the following changes: namelen - namelen .. psql:revert/namelen.sql:5: NOTICE: identifier "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" will be truncated to "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ok error: detected truncated identifiers, see test.log $ echo $? 1 $ cat test.log psql:deploy/namelen.sql:5: NOTICE: identifier "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" will be truncated to "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" psql:revert/namelen.sql:5: NOTICE: identifier "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" will be truncated to "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
About
Demo for detecting truncated Postgres identifiers in Sqitch