[adminer-svn] SF.net SVN: adminer:[1419] branches/sqlite/adminer/select.inc.php
Database management in a single PHP file
Brought to you by:
jakubvrana
From: <jak...@us...> - 2010-04-12 11:03:43
|
Revision: 1419 http://adminer.svn.sourceforge.net/adminer/?rev=1419&view=rev Author: jakubvrana Date: 2010-04-12 11:03:37 +0000 (Mon, 12 Apr 2010) Log Message: ----------- Don't limit delete with grouping Modified Paths: -------------- branches/sqlite/adminer/select.inc.php Modified: branches/sqlite/adminer/select.inc.php =================================================================== --- branches/sqlite/adminer/select.inc.php 2010-04-12 08:18:31 UTC (rev 1418) +++ branches/sqlite/adminer/select.inc.php 2010-04-12 11:03:37 UTC (rev 1419) @@ -95,13 +95,13 @@ $command = "INSERT"; $query = "INTO $query"; } - if ($_POST["all"] || ($primary === array() && $_POST["check"])) { + if ($_POST["all"] || ($primary === array() && $_POST["check"]) || count($group) < count($select)) { $result = queries($command . " $query" . ($_POST["all"] ? ($where ? "\nWHERE " . implode(" AND ", $where) : "") : "\nWHERE $where_check")); $affected = $connection->affected_rows; } else { foreach ((array) $_POST["check"] as $val) { // where is not unique so OR can't be used - $result = queries($command . limit1($query . "\nWHERE " . where_check($val), (count($group) < count($select) ? null : 1))); + $result = queries($command . limit1($query . "\nWHERE " . where_check($val))); if (!$result) { break; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |