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:
zero 2007-07-25 01:16:54 +00:00
parent b403e38b38
commit 0cf440e0b1

View file

@ -204,8 +204,7 @@
if($default) $query .= sprintf(" default '%s' ", $default);
if($notnull) $query .= " not null ";
$this->_prepare($query);
return $this->_execute();
return $this->_query($query);
}
@ -214,9 +213,8 @@
**/
function isColumnExists($table_name, $column_name) {
$query = sprintf("pragma table_info(%s%s)", $this->prefix, $table_name);
$this->_prepare($query);
$output = $this->_execute();
$result = $this->_query($query);
$output = $this->_fetch($result);
if($output) {
$column_name = strtolower($column_name);
foreach($output as $key => $val) {