-Fix SQLite functionality to work with new MySQL friendly Table schema syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
886b0dc575
commit
2066d2619a
@ -354,11 +354,14 @@ sub updateschema
|
||||
my @entries = split /,/, $cstmt;
|
||||
foreach (@entries)
|
||||
{
|
||||
s/VARCHAR\(\d+\)/TEXT/;
|
||||
unless (/\(/)
|
||||
{ #Filter out the PRIMARY KEY statement, but not if on a col
|
||||
my $colname = $_;
|
||||
$colname =~ s/^\s*(\S+)\s+.*\s*$/$1/
|
||||
; #I don't understand why it won't work otherwise for " colname TEXT "
|
||||
$colname =~ s/^"//;
|
||||
$colname =~ s/"$//;
|
||||
push @columns, $colname;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user