Fixed API test cases for exec/call procedure.

This commit is contained in:
Akshay Joshi 2024-04-26 13:01:35 +05:30
parent 2324337149
commit f724578463

View File

@ -28,7 +28,7 @@ class ProcedureExecSQLTestCase(BaseTestGenerator):
('Fetch Procedure with arguments SQL to execute', dict(
url='/browser/procedure/exec_sql/', with_args=True,
args="arg1 bigint",
expected_sql="{0} {1}.{2}( <arg1 bigint> )"))
expected_sql="{0} {1}.{2}( <IN arg1 bigint> )"))
]
def runTest(self):
@ -41,9 +41,6 @@ class ProcedureExecSQLTestCase(BaseTestGenerator):
message = "Procedures are not supported by PG < 110000."
self.skipTest(message)
if self.with_args and self.server_version >= 140000:
self.expected_sql = "{0} {1}.{2}( <IN arg1 bigint> )"
proc_name = "test_procedure_exec_sql_%s" % str(uuid.uuid4())[1:8]
proc_info = funcs_utils.create_procedure(
self.server, self.db_name, self.schema_name, proc_name,