Browse Source

fixed cubrid limit

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
de1b533a08
  1. 2
      framework/yii/db/cubrid/QueryBuilder.php

2
framework/yii/db/cubrid/QueryBuilder.php

@ -83,7 +83,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
$sql .= ' OFFSET ' . (int)$offset; $sql .= ' OFFSET ' . (int)$offset;
} }
} elseif ($offset > 0) { } elseif ($offset > 0) {
$sql = 'LIMIT ' . (int)$offset . ', 18446744073709551615'; // 2^64-1 $sql = 'LIMIT 9223372036854775807 OFFSET ' . (int)$offset; // 2^63-1
} }
return $sql; return $sql;
} }

Loading…
Cancel
Save