aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorlaurent.duretz <laurent.duretz@piwigo.org>2007-02-09 18:21:33 +0000
committerlaurent.duretz <laurent.duretz@piwigo.org>2007-02-09 18:21:33 +0000
commit44153d696575544c7787949ad63dadd209e81e8c (patch)
tree09ebc479517d6a71260deff76d0d483f336a5946 /admin/include
parent0333119b79f2a1cae08d4d66dda04a91944ae62b (diff)
Issue : 137
Use correct SQL request ta have MySql compatibility git-svn-id: http://piwigo.org/svn/trunk@1794 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 81b3cde8e..4c56dc20f 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -525,11 +525,9 @@ function mass_inserts($table_name, $dbfields, $datas)
{
$first = true;
- /*$query = 'SHOW VARIABLES where variable_name = \'max_allowed_packet\';';
+ $query = 'SHOW VARIABLES LIKE \'max_allowed_packet\';';
list(, $packet_size) = mysql_fetch_row(pwg_query($query));
$packet_size = $packet_size - 2000; // The last list of values MUST not exceed 2000 character*/
- /* DON T WORK WITH MySQL 4.1.9 */
- $packet_size = 1000000;
$query = '';
foreach ($datas as $insert)