[Phpmyadmin-git] [SCM] phpMyAdmin branch, QA_3_4, updated. RELEASE_3_4_9-16-g8697ec3
Marc Delisle
lem9 at users.sourceforge.net
Thu Dec 29 15:42:24 CET 2011
The branch, QA_3_4 has been updated
via 8697ec3d488b03d2fdcee13c03492bc9a7fe219d (commit)
from f7a9d2a36a5cedd0b380e8ca89de856a44da1874 (commit)
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 1 +
libraries/Table.class.php | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 578bed5..ee2dccf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@ phpMyAdmin - ChangeLog
- patch #3375984 [export] PHP Array export might generate invalid php code
- bug #3049209 [import] Import from ODS ignores cell that is the same as cell before
- bug #3463933 [display] SELECT DISTINCT displays wrong total records found
+- patch #3458944 [operations] copy table data missing SET SQL_MODE='NO_AUTO_VALUE_ON_ZERO'
3.4.9.0 (2011-12-21)
- bug #3442028 [edit] Inline editing enum fields with null shows no dropdown
diff --git a/libraries/Table.class.php b/libraries/Table.class.php
index 5cb46fa..767cf64 100644
--- a/libraries/Table.class.php
+++ b/libraries/Table.class.php
@@ -775,6 +775,10 @@ class PMA_Table
// Copy the data unless this is a VIEW
if (($what == 'data' || $what == 'dataonly') && ! PMA_Table::_isView($target_db,$target_table)) {
+ $sql_set_mode = "SET SQL_MODE='NO_AUTO_VALUE_ON_ZERO'";
+ PMA_DBI_query($sql_set_mode);
+ $GLOBALS['sql_query'] .= "\n\n" . $sql_set_mode . ';';
+
$sql_insert_data =
'INSERT INTO ' . $target . ' SELECT * FROM ' . $source;
PMA_DBI_query($sql_insert_data);
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list