#coding:utf-8 """ ID: issue-6746 ISSUE: 6746 TITLE: Regression: CREATE DATABASE fails with 'Token unknown' error when DB name is enclosed in double quotes and 'DEFAULT CHARACTER SET' is specified after DB name DESCRIPTION: JIRA: CORE-6517 FBTEST: bugs.core_6517 """ import locale from pathlib import Path import pytest from firebird.qa import * db = db_factory() act = python_act('db') test_db = temp_file('tmp_core_6517.fdb') @pytest.mark.version('>=3.0.8') def test_1(act: Action, test_db: Path): test_sql = f""" create database "{act.get_dsn(test_db)}" default character set utf8; """ act.isql(switches = ['-q'], input = test_sql, connect_db = False, combine_output = True, io_enc = locale.getpreferredencoding())