forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BABEL: Fix a syntax error to set attoptions bbf_original_name having …
…a special character (yugabyte#13) * Fix a syntax error to set attoptions bbf_original_name having a special character Babelfish keeps a column original name in attoptions field in pg_atrribute. If special chracter is involved, as pg_dump generates an ALTER TABLE ALTER COLUMN SET without any escaping, it can cause an error. To prevent this issue, when generating ALTER statement, enclose column original name with single quotes so that original name can be treated as a string literal. This single quotes will be stripped out by parser so attoptions stores the original name without quotes. So this will not break backward-compatibility. Task: BABEL-3121 Signed-off-by: Sangil Song [email protected] (cherry picked from commit 773b995c45d56fbcdfb74b7e983f7ba2c7ae1717)
- Loading branch information
1 parent
bf480b7
commit 385a006
Showing
3 changed files
with
41 additions
and
1 deletion.
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
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