mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
list_order, update_order에 강제 인덱스를 적용할때 list_order가 0 보다 큰 값이 있을 경우가 있기에 0보다 작다가 아닌 2100000000보다 작다로 조건절을 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2389 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e5db5d3f2b
commit
83c1aa06a3
4 changed files with 16 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue