From 0cf440e0b1938ec90d0bcf50525bd2553576481a Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 25 Jul 2007 01:16:54 +0000 Subject: [PATCH] =?UTF-8?q?sqlite2=20handling=20class=EC=97=90=EC=84=9C=20?= =?UTF-8?q?sqlite3=EC=9D=98=20=EC=BD=94=EB=93=9C=EB=A5=BC=20=EB=B3=B5?= =?UTF-8?q?=EC=82=AC=ED=95=98=EC=97=AC=20=EC=83=9D=EA=B8=B4=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/trunk@2002 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBSqlite2.class.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/classes/db/DBSqlite2.class.php b/classes/db/DBSqlite2.class.php index da1a72737..0f4f1d227 100644 --- a/classes/db/DBSqlite2.class.php +++ b/classes/db/DBSqlite2.class.php @@ -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) {