You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the UUID function is preselected for this field. If you remove it, it will work properly. However it really doesn't make sense to preselect UUID function for foreign key field. (The UUID function is interpreted in phpMyAdmin and generates new UUID before sending the query)
I think the index information should be passed down so that the function ca decide on it's own. When $foreignData['foreign_link'] is true, the default function should not be used for any field.
It needs a bit reordering of code in PMA_getHtmlForInsertEditFormColumn and then pass $foreignData down to getDefaultFunctionForField.
Hi
I'm happy to file a pull request for this issue if you could provide me with a quick hint where to look for this error.
Best,
Roger
Steps to reproduce
role_user
.Expected behaviour
A correct INSERT statement should be generated.
Actual behaviour
The wrong
user_id
value is copied into the INSERT statement.Server configuration
Operating system:
Debian 8.4 (64-bit)
Web server:
Apache/2.4.10
Database:
mysql Ver 14.14 Distrib 5.5.49, for debian-linux-gnu (x86_64) using readline 6.3
PHP version:
PHP 7.0.6-1~dotdeb+8.1
phpMyAdmin version:
8a0e392
Client configuration
Browser:
Chromium 50.0.2661.94
Operating system:
Debian 8.4 (64-bit)
The text was updated successfully, but these errors were encountered: