Commit 99e3532
fix(mysql): route view DDL through text protocol (#390)
create_view, alter_view and drop_view executed their statements via
sqlx::query(), which uses MySQL's prepared-statement protocol. MySQL
rejects CREATE VIEW / ALTER VIEW there with error 1295 ("This command
is not supported in the prepared statement protocol yet"), so saving a
view from the view editor failed.
Route all three through sqlx::raw_sql() (COM_QUERY text protocol),
matching the existing handling for transaction-control statements.
Co-authored-by: Daniel Noé Núñez López <daniel.nunez@stjsonora.gob.mx>
Co-authored-by: Andrea Debernardi <andrea@debbaweb.it>1 parent 11d4806 commit 99e3532
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
| 938 | + | |
| 939 | + | |
939 | 940 | | |
940 | 941 | | |
941 | 942 | | |
| |||
950 | 951 | | |
951 | 952 | | |
952 | 953 | | |
953 | | - | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
954 | 959 | | |
955 | 960 | | |
956 | 961 | | |
| |||
961 | 966 | | |
962 | 967 | | |
963 | 968 | | |
964 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
965 | 974 | | |
966 | 975 | | |
967 | 976 | | |
| |||
0 commit comments