Skip to content

Commit

Permalink
add bats test for procedure alias not showing in information_schema.r…
Browse files Browse the repository at this point in the history
…outines table (#3554)
  • Loading branch information
jennifersp authored Jun 7, 2022
1 parent fe7ff99 commit 841b294
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions integration-tests/bats/tableplus.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 841b294

Please sign in to comment.