[xoops-cvslog 4324] CVS update: xoops2jp/html/modules/base/admin/class

Back to archive index

Minahito minah****@users*****
2006年 8月 24日 (木) 13:57:56 JST


Index: xoops2jp/html/modules/base/admin/class/Legacy_SQLScanner.class.php
diff -u xoops2jp/html/modules/base/admin/class/Legacy_SQLScanner.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/class/Legacy_SQLScanner.class.php:1.1.2.4
--- xoops2jp/html/modules/base/admin/class/Legacy_SQLScanner.class.php:1.1.2.3	Thu Aug 17 12:49:41 2006
+++ xoops2jp/html/modules/base/admin/class/Legacy_SQLScanner.class.php	Thu Aug 24 13:57:56 2006
@@ -55,18 +55,18 @@
 			if (count($op) >= 3) {
 				if ($op[0]->mType == EASYLEX_SQL_LETTER && strtoupper($op[0]->mValue) == 'CREATE' &&
 				    $op[1]->mType == EASYLEX_SQL_LETTER && strtoupper($op[1]->mValue) == 'TABLE' &&
-				    $op[2]->mType == EASYLEX_SQL_LETTER) {
-						$op[2]->mValue = $this->mDB_PREFIX . '_' . $op[2]->mValue;
+				    ($op[2]->mType == EASYLEX_SQL_LETTER || $op[2]->mType == EASYLEX_SQL_STRING_LITERAL)) {
+						$op[2]->mValue = $this->mDB_PREFIX . '_' . $op[2]->getValue();
 				}
 				if ($op[0]->mType == EASYLEX_SQL_LETTER && strtoupper($op[0]->mValue) == 'ALTER' &&
 				    $op[1]->mType == EASYLEX_SQL_LETTER && strtoupper($op[1]->mValue) == 'TABLE' &&
-				    $op[2]->mType == EASYLEX_SQL_LETTER) {
-						$op[2]->mValue = $this->mDB_PREFIX . '_' . $op[2]->mValue;
+				    ($op[2]->mType == EASYLEX_SQL_LETTER || $op[2]->mType == EASYLEX_SQL_STRING_LITERAL)) {
+						$op[2]->mValue = $this->mDB_PREFIX . '_' . $op[2]->getValue();
 				}
 				if ($op[0]->mType == EASYLEX_SQL_LETTER && strtoupper($op[0]->mValue) == 'INSERT' &&
 				    $op[1]->mType == EASYLEX_SQL_LETTER && strtoupper($op[1]->mValue) == 'INTO' &&
-				    $op[2]->mType == EASYLEX_SQL_LETTER) {
-						$op[2]->mValue = $this->mDB_PREFIX . '_' . $op[2]->mValue;
+				    ($op[2]->mType == EASYLEX_SQL_LETTER || $op[2]->mType == EASYLEX_SQL_STRING_LITERAL)) {
+						$op[2]->mValue = $this->mDB_PREFIX . '_' . $op[2]->getValue();
 				}
 			}
 		}


xoops-cvslog メーリングリストの案内
Back to archive index