Refs #23766 -- Added tests for CursorWrapper.callproc().

Thanks Tim Graham for the review.
This commit is contained in:
Mariusz Felisiak 2017-08-08 22:13:02 +02:00 committed by GitHub
parent c754bdc45b
commit 3189a93ceb
7 changed files with 86 additions and 1 deletions

View file

@ -33,6 +33,22 @@ class DatabaseFeatures(BaseDatabaseFeatures):
can_clone_databases = True
supports_temporal_subtraction = True
supports_slicing_ordering_in_compound = True
create_test_procedure_without_params_sql = """
CREATE FUNCTION test_procedure () RETURNS void AS $$
DECLARE
V_I INTEGER;
BEGIN
V_I := 1;
END;
$$ LANGUAGE plpgsql;"""
create_test_procedure_with_int_param_sql = """
CREATE FUNCTION test_procedure (P_I INTEGER) RETURNS void AS $$
DECLARE
V_I INTEGER;
BEGIN
V_I := P_I;
END;
$$ LANGUAGE plpgsql;"""
@cached_property
def has_select_for_update_skip_locked(self):