Backported #2823599 UUID Primary Key wrongly updated
This commit is contained in:
@@ -13,6 +13,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
||||
- bug #2887357 [core] Slow loading times with large databases (partial fix)
|
||||
- bug #2893931 [lang] Typo and empty message
|
||||
+ [lang] Russian update, thanks to Victor Volkov
|
||||
- bug #2823599 [edit] UUID Primary Key wrongly updated
|
||||
|
||||
3.2.3.0 (2009-10-30)
|
||||
- patch #2856664 [export] Date, time, and datetime column types now export correctly to
|
||||
|
@@ -525,8 +525,12 @@ foreach ($rows as $row_id => $vrow) {
|
||||
$default_function = $cfg['DefaultFunctions']['first_timestamp'];
|
||||
}
|
||||
|
||||
if ($field['Key'] == 'PRI'
|
||||
&& ($field['Type'] == 'char(36)' || $field['Type'] == 'varchar(36)')) {
|
||||
// For primary keys of type char(36) or varchar(36) UUID if the default function
|
||||
// Only applies to insert mode, as it would silently trash data on updates.
|
||||
if ($insert_mode
|
||||
&& $field['Key'] == 'PRI'
|
||||
&& ($field['Type'] == 'char(36)' || $field['Type'] == 'varchar(36)')
|
||||
) {
|
||||
$default_function = $cfg['DefaultFunctions']['pk_char36'];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user