add bats test for procedure alias not showing in information_schema.routines table (#3554)

This commit is contained in:
jennifersp
2022-06-07 15:56:07 -07:00
committed by GitHub
parent fe7ff993d9
commit 841b294841
+23
View File
@@ -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
}