Skip to content

Commit

Permalink
Tests for stored procedures - change SQL script for PostgreSQL to plp…
Browse files Browse the repository at this point in the history
…gsql language to fix failiing pipeline
  • Loading branch information
amochin committed Jul 11, 2023
1 parent a4f6f2b commit 7ff91a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions test/resources/create_stored_procedure_postgres.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
DROP ROUTINE IF EXISTS no_params;
CREATE FUNCTION no_params()
RETURNS VOID
BEGIN ATOMIC
LANGUAGE plpgsql
AS
'
BEGIN
-- Do nothing
END;
END
';

DROP ROUTINE IF EXISTS get_second_name;
CREATE FUNCTION
Expand Down
2 changes: 1 addition & 1 deletion test/tests/common_tests/stored_procedures.robot
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Procedure Takes No Params
Length Should Be ${param values} 0
IF "${DB_MODULE}" in ["psycopg2", "psycopg3"]
Length Should Be ${result sets} 1
Should Be Equal As Strings ${result sets}[0][0][0] None
Should Be Equal As Strings ${result sets}[0][0][0] ${EMPTY}
ELSE
Length Should Be ${result sets} 0
END
Expand Down

0 comments on commit 7ff91a6

Please sign in to comment.