From 83c1aa06a35e1997dbc210304e027842a6fee620 Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 23 Aug 2007 06:31:04 +0000 Subject: [PATCH] =?UTF-8?q?list=5Forder,=20update=5Forder=EC=97=90=20?= =?UTF-8?q?=EA=B0=95=EC=A0=9C=20=EC=9D=B8=EB=8D=B1=EC=8A=A4=EB=A5=BC=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9=ED=95=A0=EB=95=8C=20list=5Forder=EA=B0=80=20?= =?UTF-8?q?0=20=EB=B3=B4=EB=8B=A4=20=ED=81=B0=20=EA=B0=92=EC=9D=B4=20?= =?UTF-8?q?=EC=9E=88=EC=9D=84=20=EA=B2=BD=EC=9A=B0=EA=B0=80=20=EC=9E=88?= =?UTF-8?q?=EA=B8=B0=EC=97=90=200=EB=B3=B4=EB=8B=A4=20=EC=9E=91=EB=8B=A4?= =?UTF-8?q?=EA=B0=80=20=EC=95=84=EB=8B=8C=202100000000=EB=B3=B4=EB=8B=A4?= =?UTF-8?q?=20=EC=9E=91=EB=8B=A4=EB=A1=9C=20=EC=A1=B0=EA=B1=B4=EC=A0=88?= =?UTF-8?q?=EC=9D=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2389 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBMysql.class.php | 8 ++++---- classes/db/DBMysql_innodb.class.php | 8 ++++---- classes/db/DBSqlite2.class.php | 8 ++++---- classes/db/DBSqlite3_pdo.class.php | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/classes/db/DBMysql.class.php b/classes/db/DBMysql.class.php index fae3c63bd..fd331f5fa 100644 --- a/classes/db/DBMysql.class.php +++ b/classes/db/DBMysql.class.php @@ -501,8 +501,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } @@ -560,8 +560,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } diff --git a/classes/db/DBMysql_innodb.class.php b/classes/db/DBMysql_innodb.class.php index 2d0e4440f..634b76fbd 100644 --- a/classes/db/DBMysql_innodb.class.php +++ b/classes/db/DBMysql_innodb.class.php @@ -510,8 +510,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } @@ -569,8 +569,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } diff --git a/classes/db/DBSqlite2.class.php b/classes/db/DBSqlite2.class.php index e5085e904..f3f1be23f 100644 --- a/classes/db/DBSqlite2.class.php +++ b/classes/db/DBSqlite2.class.php @@ -527,8 +527,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } @@ -586,8 +586,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } diff --git a/classes/db/DBSqlite3_pdo.class.php b/classes/db/DBSqlite3_pdo.class.php index e8c7b753b..75f889a2b 100644 --- a/classes/db/DBSqlite3_pdo.class.php +++ b/classes/db/DBSqlite3_pdo.class.php @@ -570,8 +570,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } @@ -629,8 +629,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } }