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

Changing a colum to a virtual column does nothing #19117

Closed
M393 opened this issue Apr 18, 2024 · 0 comments
Closed

Changing a colum to a virtual column does nothing #19117

M393 opened this issue Apr 18, 2024 · 0 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
Milestone

Comments

@M393
Copy link
Contributor

M393 commented Apr 18, 2024

Describe the bug

When only the virtuality of a column is changed in phpMyAdmin it does not generate an alter-table statement.

To Reproduce

Steps to reproduce the behavior:

  1. Create a table like this
CREATE TABLE `area` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `geometry` polygon NOT NULL,
  `geometry_buffered` polygon,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB
  1. Go to structure
  2. Change the structure for column geometry_buffered to Virtuality - stored with expression st_geometryfromwkb(st_aswkb(st_buffer(Area,0.0045)),4326)
  3. Preview sql
  4. It is is empty

Expected behavior

A statement like this should be generated:

ALTER TABLE `area` 
CHANGE `geometry_buffered` `geometry_buffered` POLYGON AS (ST_GeomFromWKB(ST_AsWKB(ST_Buffer(area, 0.0045)), 4326)) STORED;

Server configuration

  • Operating system: linux
  • Web server: apache 2.4
  • Database version: MariaDB 10.11.7
  • PHP version: 8.1
  • phpMyAdmin version: QA_5_2

Client configuration

  • Browser: chrome
  • Operating system: win 10
williamdes added a commit that referenced this issue Apr 27, 2024
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes added 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 labels Apr 27, 2024
@williamdes williamdes added this to the 5.2.2 milestone Apr 27, 2024
@williamdes williamdes self-assigned this Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants