• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの


Commit MetaInfo

Revision4adef15af01c898b320f0834d1602cc229c535ca (tree)
Time2008-02-23 11:03:25
Authorkmorimatsu <kmorimatsu@1ca2...>
Commiterkmorimatsu

Log Message

debug REGEXP etc
version 0.9.0.3

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@607 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- a/trunk/sqlite/nucleus/sqlite/sqlite.php
+++ b/trunk/sqlite/nucleus/sqlite/sqlite.php
@@ -1,7 +1,7 @@
11 <?php
22 /****************************************
33 * SQLite-MySQL wrapper for Nucleus *
4- * ver 0.9.0.2 *
4+ * ver 0.9.0.3 *
55 * Written by Katsumi *
66 ****************************************/
77
@@ -13,7 +13,7 @@ if (!function_exists('sqlite_open')) exit('Sorry, SQLite is not available from P
1313 require_once dirname(__FILE__) . '/sqliteconfig.php';
1414 $SQLITE_DBHANDLE=sqlite_open($SQLITECONF['DBFILENAME']);
1515 require_once dirname(__FILE__) . '/sqlitequeryfunctions.php';
16-$SQLITECONF['VERSION']='0.9.0.2';
16+$SQLITECONF['VERSION']='0.9.0.3';
1717
1818 //Following thing may work if MySQL is NOT installed in server.
1919 if (!function_exists('mysql_query')) {
@@ -241,9 +241,9 @@ function sqlite_mysql_query_sub($dbhandle,$query,$strpositions=array(),$p1=null,
241241 $query=sqlite_showFieldsFrom(trim(substr($query,18)),$dbhandle);
242242 } else if (strpos($uquery,'TRUNCATE TABLE ')===0) {
243243 $query='DELETE FROM '.substr($query,15);
244- } else if (preg_match('/DESC \'([^\']+)\' \'([^\']+)\'$/',$query,$m)) {
244+ } else if (preg_match('/^DESC \'([^\']+)\' \'([^\']+)\'$/',$query,$m)) {
245245 return nucleus_mysql_query("SHOW FIELDS FROM '$m[1]' LIKE '$m[2]'");
246- } else if (preg_match('/DESC ([^\s]+) ([^\s]+)$/',$query,$m)) {
246+ } else if (preg_match('/^DESC ([^\s]+) ([^\s]+)$/',$query,$m)) {
247247 return nucleus_mysql_query("SHOW FIELDS FROM '$m[1]' LIKE '$m[2]'");
248248 } else SQLite_Functions::sqlite_modifyQueryForUserFunc($query,$strpositions);
249249
Show on old repository browser