[MDEV-32770] Mariadb-dump improper view creation Created: 2023-11-10 Updated: 2023-11-13 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 11.1.2 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0, 11.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tadas Balaišis | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Win64 |
||
| Description |
|
Script, created by mariadb-dump, got execution errors due to improper view creation sequence. The reason is initial view creation by such type commands:
After that view columns defined as numeric despite original column types. |
| Comments |
| Comment by Daniel Black [ 2023-11-12 ] | |||||||||||||||||
|
Can you please elaborate to make this a full set of steps and SQL structures. | |||||||||||||||||
| Comment by Tadas Balaišis [ 2023-11-13 ] | |||||||||||||||||
|
Here is simplified sample:
mariadb-dump will create sql script with:
| |||||||||||||||||
| Comment by Sergei Golubchik [ 2023-11-13 ] | |||||||||||||||||
|
geomfromtext() is another example of a function that fails with incorrect types | |||||||||||||||||
| Comment by Alexander Barkov [ 2023-11-13 ] | |||||||||||||||||
|
New data types like INET4, INET6, UUID have stricter rules than old data types. Examples:
|