mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 11:32:12 +09:00
#19045610: default에 주어지는 변수 내용이 숫자인 경우라도 컬럼 타입이 char 또는 varchar인 경우 ALTER시 작은 따음표로 싸도록 수정.(보고된 이슈와 직접적 관련은 없으나 본 이슈 검토중 버그 발견하여 수정.)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7621 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
98cb701552
commit
d3a70e65aa
1 changed files with 1 additions and 2 deletions
|
|
@ -336,7 +336,6 @@
|
|||
|
||||
// 만약 테이블 이름이 sequence라면 serial 생성
|
||||
if($table_name == 'sequence') {
|
||||
|
||||
$query = sprintf('create serial "%s" start with 1 increment by 1 minvalue 1 maxvalue 10000000000000000000000000000000000000 nocycle;', $this->prefix.$table_name);
|
||||
return $this->_query($query);
|
||||
}
|
||||
|
|
@ -375,7 +374,7 @@
|
|||
break;
|
||||
}
|
||||
|
||||
if($default && (!is_numeric($default) || $default[0] == "+")) $default = "'".$default."'";
|
||||
if($default && ($type != 'varchar' || $type != 'char')) $default = "'".$default."'";
|
||||
|
||||
$column_schema[] = sprintf('"%s" %s%s %s %s',
|
||||
$name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue