mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 21:43:06 +01:00
62 lines
1.3 KiB
Python
62 lines
1.3 KiB
Python
#coding:utf-8
|
|
#
|
|
# id: bugs.core_6108
|
|
# title: Regression: FB3 throws "Datatypes are not comparable in expression" in procedure parameters
|
|
# decription:
|
|
# Confirmed bug on 4.0.0.1567; 3.0.5.33160.
|
|
# Works fine on 4.0.0.1573; 3.0.x is still affected
|
|
#
|
|
# tracker_id: CORE-6108
|
|
# min_versions: ['2.5']
|
|
# versions: 2.5
|
|
# qmid: None
|
|
|
|
import pytest
|
|
from firebird.qa import db_factory, isql_act, Action
|
|
|
|
# version: 2.5
|
|
# resources: None
|
|
|
|
substitutions_1 = []
|
|
|
|
init_script_1 = """"""
|
|
|
|
db_1 = db_factory(sql_dialect=3, init=init_script_1)
|
|
|
|
# test_script_1
|
|
#---
|
|
#
|
|
# proc_ddl='''
|
|
# create or alter procedure test_proc ( a_dts timestamp) returns ( o_dts timestamp) as
|
|
# begin
|
|
# o_dts = a_dts;
|
|
# suspend;
|
|
# end
|
|
# '''
|
|
#
|
|
# db_conn.execute_immediate( proc_ddl )
|
|
# db_conn.commit()
|
|
#
|
|
# cur=db_conn.cursor()
|
|
#
|
|
# sttm="select o_dts from test_proc('2019-'|| COALESCE( ?, 1) ||'-01' )"
|
|
# cur.execute( sttm, ( 3, ) )
|
|
# for r in cur:
|
|
# print(r[0])
|
|
# cur.close()
|
|
#
|
|
#
|
|
#---
|
|
#act_1 = python_act('db_1', test_script_1, substitutions=substitutions_1)
|
|
|
|
expected_stdout_1 = """
|
|
2019-03-01 00:00:00
|
|
"""
|
|
|
|
@pytest.mark.version('>=2.5')
|
|
@pytest.mark.xfail
|
|
def test_1(db_1):
|
|
pytest.fail("Test not IMPLEMENTED")
|
|
|
|
|