Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #1908 is null is not added when extra source columns are migrated #2062

Open
wants to merge 3 commits into
base: rel-10_1
Choose a base branch
from

Conversation

dennis-dko
Copy link

No description provided.

dennis-dko added 3 commits December 22, 2022 11:50
…fault value and not null column attributes correctly.
…ly, cannot use bind because it will quote variables with inverted commas in sql query.
@@ -288,15 +289,20 @@ sub AlterTableAddColumn {
my $SQL = qq{ALTER TABLE $Param{Table} ADD $Param{Column} $ColumnInfos{DATA_TYPE}};

if ( $ColumnInfos{LENGTH} ) {
$SQL .= " \($ColumnInfos{LENGTH}\)";
$SQL .= " ($ColumnInfos{LENGTH})";
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that $ColumnInfos{COLUMN_DEFAULT} should be quoted, just in case it contains a single quote character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'IS NULL' and default value are not added when extra source columns are migrated
2 participants