Commit f016a798 authored by bbaetz%acm.org's avatar bbaetz%acm.org

Bug 203540 - RenameField doesn't get NULL/NOT NULL correct

r,a=justdave
parent d56611c2
......@@ -2120,7 +2120,7 @@ sub RenameField ($$$)
if ($$ref[1] ne $newname) {
print "Updating field $field in table $table ...\n";
my $type = $$ref[1];
$type .= " NOT NULL" if $$ref[3];
$type .= " NOT NULL" if !$$ref[2];
$dbh->do("ALTER TABLE $table
CHANGE $field
$newname $type");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment