mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-28 20:49:43 -05:00
add bats test for procedure alias not showing in information_schema.routines table (#3554)
This commit is contained in:
@@ -221,3 +221,26 @@ SQL
|
||||
run dolt sql -q "show full tables from test"
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@test "tableplus: information_schema.routines excludes procedure aliases, but works with CALL" {
|
||||
run dolt sql -q "SELECT ROUTINE_SCHEMA as function_schema,ROUTINE_NAME as function_name,ROUTINE_DEFINITION as create_statement,ROUTINE_TYPE as function_type FROM information_schema.routines where ROUTINE_SCHEMA='test';"
|
||||
[ "$status" -eq 0 ]
|
||||
[[ ! "$output" =~ "dadd" ]] || false
|
||||
[[ ! "$output" =~ "dadd" ]] || false
|
||||
[[ ! "$output" =~ "dbranch" ]] || false
|
||||
[[ ! "$output" =~ "dcheckout" ]] || false
|
||||
[[ ! "$output" =~ "dclean" ]] || false
|
||||
[[ ! "$output" =~ "dcommit" ]] || false
|
||||
[[ ! "$output" =~ "dfetch" ]] || false
|
||||
[[ ! "$output" =~ "dmerge" ]] || false
|
||||
[[ ! "$output" =~ "dpull" ]] || false
|
||||
[[ ! "$output" =~ "dpush" ]] || false
|
||||
[[ ! "$output" =~ "dreset" ]] || false
|
||||
[[ ! "$output" =~ "drevert" ]] || false
|
||||
[[ ! "$output" =~ "dverify_constraints" ]] || false
|
||||
[[ ! "$output" =~ "dverify_all_constraints" ]] || false
|
||||
|
||||
run dolt sql -q "CALL dbranch('branch1')"
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "status" ]] || false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user