mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 13:33:07 +01:00
32 lines
519 B
Python
32 lines
519 B
Python
#coding:utf-8
|
|
|
|
"""
|
|
ID: issue-6283
|
|
ISSUE: 6283
|
|
TITLE: SUBSTRING(CURRENT_TIMESTAMP) does not work
|
|
DESCRIPTION:
|
|
JIRA: CORE-6033
|
|
FBTEST: bugs.core_6033
|
|
"""
|
|
|
|
import pytest
|
|
from firebird.qa import *
|
|
|
|
db = db_factory()
|
|
|
|
test_script = """
|
|
set term ^;
|
|
execute block as
|
|
declare c varchar(100);
|
|
begin
|
|
c = substring(current_timestamp from 1);
|
|
end
|
|
^
|
|
"""
|
|
|
|
act = isql_act('db', test_script)
|
|
|
|
@pytest.mark.version('>=4.0')
|
|
def test_1(act: Action):
|
|
act.execute()
|