Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot edit or export TIMESTAMP column with default CURRENT_TIMESTAMP in MySQL >= 8.0.13 #16076

Closed
williamdes opened this issue Apr 14, 2020 · 5 comments
Assignees
Labels
Bug A problem or regression with an existing feature has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete help wanted
Projects
Milestone

Comments

@williamdes
Copy link
Member

@williamdes Can we reopen this? The problem still exists for me on two different servers.
Direct dump with mysqldump works as expected, just dumping over phpmyadmin does not work

Server 1 configuration

Operating system: Ubuntu
Web server: Nginx/1.17.9
Database version: MySQL 8.0.19
PHP version: 7.4.3
phpMyAdmin version: 5.0.2

Server 2 configuration

Operating system: Debian
Web server: Apache/2.4.38
Database version: MySQL 8.0.19
PHP version: 7.3.14
phpMyAdmin version: 4.9.4

Table Definition

# Name Type Collation Attribute Null Default Extra
1 ID int UNSIGNED NO AUTO_INCREMEMT
2 xyv int UNSIGNED NO
3 xyz varchar(50) utf8_general_ci NO
4 timestamp timestamp on update CURRENT_TIMESTAMP NO CURRENT_TIMESTAMP DEFAULT_GENERATED ON UPDATE CURRENT_TIMESTAMP

Originally posted by @toitzi in #15315 (comment)

Ref: #15315

@williamdes
Copy link
Member Author

Hi @toitzi
I opened a new issue for this one
Could you give us a table structure as SQL ?

@williamdes williamdes added the question Used when we need feedback from the submitter or when the issue is a question about PMA label Apr 14, 2020
@williamdes williamdes added this to Needs triage in Questions via automation Apr 14, 2020
@toitzi
Copy link

toitzi commented Apr 15, 2020

Thanks, sure here:

CREATE TABLE batch_log
(
    ID        INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    task      VARCHAR(50)                         NOT NULL,
    timestamp TIMESTAMP default CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP,
    CONSTRAINT batch_log UNIQUE (task, timestamp)
);

Just insert some data and export it via phpmyadmin....it will not export the timestamp column ... mysqldump will

@williamdes
Copy link
Member Author

NB: MariaDB works fine, it is a MySQL issue.
Reproduced.

@williamdes williamdes added Bug A problem or regression with an existing feature and removed question Used when we need feedback from the submitter or when the issue is a question about PMA labels Apr 15, 2020
@williamdes williamdes removed this from Needs triage in Questions Apr 15, 2020
@williamdes williamdes added this to Needs triage in issues via automation Apr 15, 2020
@williamdes williamdes moved this from Needs triage to High priority in issues Apr 15, 2020
@williamdes williamdes added this to the 5.0.3 milestone Apr 15, 2020
@williamdes
Copy link
Member Author

Would you want to try a fix for this one @asprazz?

@anksh1997
Copy link
Contributor

Yes!, @williamdes on it. 💯

@williamdes williamdes added the has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete label Jun 21, 2020
@williamdes williamdes self-assigned this Jun 22, 2020
williamdes added a commit that referenced this issue Jun 22, 2020
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from High priority to Closed Jun 24, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete help wanted
Projects
issues
  
Closed
Development

No branches or pull requests

3 participants