mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
sqlite2 handling class에서 sqlite3의 코드를 복사하여 생긴 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2002 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b403e38b38
commit
0cf440e0b1
1 changed files with 3 additions and 5 deletions
|
|
@ -204,8 +204,7 @@
|
||||||
if($default) $query .= sprintf(" default '%s' ", $default);
|
if($default) $query .= sprintf(" default '%s' ", $default);
|
||||||
if($notnull) $query .= " not null ";
|
if($notnull) $query .= " not null ";
|
||||||
|
|
||||||
$this->_prepare($query);
|
return $this->_query($query);
|
||||||
return $this->_execute();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -214,9 +213,8 @@
|
||||||
**/
|
**/
|
||||||
function isColumnExists($table_name, $column_name) {
|
function isColumnExists($table_name, $column_name) {
|
||||||
$query = sprintf("pragma table_info(%s%s)", $this->prefix, $table_name);
|
$query = sprintf("pragma table_info(%s%s)", $this->prefix, $table_name);
|
||||||
$this->_prepare($query);
|
$result = $this->_query($query);
|
||||||
$output = $this->_execute();
|
$output = $this->_fetch($result);
|
||||||
|
|
||||||
if($output) {
|
if($output) {
|
||||||
$column_name = strtolower($column_name);
|
$column_name = strtolower($column_name);
|
||||||
foreach($output as $key => $val) {
|
foreach($output as $key => $val) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue