Closed muescha closed 3 months ago
FYI: the full sql statement from flyway is:
SELECT SUM(found)
FROM ((SELECT 1 as found FROM information_schema.tables WHERE table_schema = 'restdb')
UNION ALL
(SELECT 1 as found FROM information_schema.views WHERE table_schema = 'restdb' LIMIT 1)
UNION ALL
(SELECT 1 as found FROM information_schema.table_constraints WHERE table_schema = 'restdb' LIMIT 1)
UNION ALL
(SELECT 1 as found FROM information_schema.triggers WHERE event_object_schema = 'restdb' LIMIT 1)
UNION ALL
(SELECT 1 as found FROM information_schema.routines WHERE routine_schema = 'restdb' LIMIT 1)
UNION ALL
(SELECT 1 as found FROM information_schema.events WHERE event_schema = 'restdb' LIMIT 1)) as all_found
changed the subject from UNION
to subquery
because removing theUNION
result in same error:
SELECT SUM(found)
FROM (
SELECT 1 as found FROM information_schema.tables
) as all_found;
restdb> SELECT SUM(found)
FROM (
SELECT 1 as found FROM information_schema.tables
) as all_found
[2024-06-24 19:49:19] [HY000][1105] command denied to user 'restadmin'@'%'
FYI: no error anymore with 1.41.1
Setup
dolt server created database
restdb
created userrestadmin
connected to databaserestdb
asrestadmin
Command denied
There is some other odd functionality with dolt:
Result in Error:
Commands working
But this SQL works:
this also works:
and this also works: