2021-04-26 20:07:00 +02:00
|
|
|
|
#coding:utf-8
|
|
|
|
|
#
|
|
|
|
|
# id: functional.intfunc.string.lpad_01
|
|
|
|
|
# title: test for LPAD function, including non-ascii characters.
|
|
|
|
|
# decription:
|
|
|
|
|
# 03-mar-2021. Re-implemented in order to have ability to run this test on Linux.
|
|
|
|
|
# Added tests from some COREs which have no apropriate .fbt
|
|
|
|
|
# Test creates table and fills it with non-ascii characters using charset = UTF8.
|
|
|
|
|
# Then it generates .sql script for running it in separate ISQL process.
|
|
|
|
|
# This script makes connection to test DB using charset = ISO8859_1 and perform needed DML.
|
|
|
|
|
# Result will be redirected to .log which will be opened via codecs.open(...encoding='iso-8859-1').
|
|
|
|
|
# Its content will be converted to UTF8 for showing in expected_stdout.
|
|
|
|
|
#
|
|
|
|
|
# Checked on:
|
|
|
|
|
# * Windows: 4.0.0.2377, 3.0.8.33420
|
|
|
|
|
# * Linux: 4.0.0.2377, 3.0.8.33415
|
|
|
|
|
#
|
|
|
|
|
# tracker_id:
|
|
|
|
|
# min_versions: []
|
|
|
|
|
# versions: 3.0
|
|
|
|
|
# qmid:
|
|
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
from firebird.qa import db_factory, isql_act, Action
|
|
|
|
|
|
|
|
|
|
# version: 3.0
|
|
|
|
|
# resources: None
|
|
|
|
|
|
|
|
|
|
substitutions_1 = [('BLOB_ID_.*', ''), ('.*After line \\d+.*', '')]
|
|
|
|
|
|
|
|
|
|
init_script_1 = """"""
|
|
|
|
|
|
|
|
|
|
db_1 = db_factory(charset='ISO8859_1', sql_dialect=3, init=init_script_1)
|
|
|
|
|
|
|
|
|
|
# test_script_1
|
|
|
|
|
#---
|
|
|
|
|
#
|
|
|
|
|
# import os
|
|
|
|
|
# import codecs
|
|
|
|
|
# import subprocess
|
|
|
|
|
# import time
|
|
|
|
|
#
|
|
|
|
|
# db_conn.close()
|
|
|
|
|
#
|
|
|
|
|
# #--------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# def flush_and_close( file_handle ):
|
|
|
|
|
# # https://docs.python.org/2/library/os.html#os.fsync
|
|
|
|
|
# # If you're starting with a Python file object f,
|
|
|
|
|
# # first do f.flush(), and
|
|
|
|
|
# # then do os.fsync(f.fileno()), to ensure that all internal buffers associated with f are written to disk.
|
|
|
|
|
# global os
|
|
|
|
|
#
|
|
|
|
|
# file_handle.flush()
|
|
|
|
|
# if file_handle.mode not in ('r', 'rb') and file_handle.name != os.devnull:
|
|
|
|
|
# # otherwise: "OSError: [Errno 9] Bad file descriptor"!
|
|
|
|
|
# os.fsync(file_handle.fileno())
|
|
|
|
|
# file_handle.close()
|
|
|
|
|
#
|
|
|
|
|
# #--------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# def cleanup( f_names_list ):
|
|
|
|
|
# global os
|
|
|
|
|
# for i in range(len( f_names_list )):
|
|
|
|
|
# if type(f_names_list[i]) == file:
|
|
|
|
|
# del_name = f_names_list[i].name
|
|
|
|
|
# elif type(f_names_list[i]) == str:
|
|
|
|
|
# del_name = f_names_list[i]
|
|
|
|
|
# else:
|
|
|
|
|
# print('Unrecognized type of element:', f_names_list[i], ' - can not be treated as file.')
|
|
|
|
|
# del_name = None
|
|
|
|
|
#
|
|
|
|
|
# if del_name and os.path.isfile( del_name ):
|
|
|
|
|
# os.remove( del_name )
|
|
|
|
|
#
|
|
|
|
|
# #--------------------------------------------
|
|
|
|
|
# # NB: do NOT include here character "­ ­ soft hyphen"
|
|
|
|
|
# # It can not be properly represented on linux in utf8 codepage!
|
|
|
|
|
# # https://jkorpela.fi/shy.html
|
|
|
|
|
# data = "¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
|
|
|
|
|
#
|
|
|
|
|
# null_dev = os.devnull
|
|
|
|
|
#
|
|
|
|
|
# sql_txt=''' set names ISO8859_1;
|
|
|
|
|
# connect '%(dsn)s' user '%(user_name)s' password '%(user_password)s';
|
|
|
|
|
# set list on;
|
|
|
|
|
# recreate table test(c varchar(32765), b blob sub_type text);
|
|
|
|
|
# insert into test(c, b) values( '%(data)s', '%(data)s' );
|
|
|
|
|
# select lpad(c, 2 * char_length(c), b) as blob_id_01 from test;
|
|
|
|
|
# select lpad(b, 2 * char_length(b), c) as blob_id_02 from test;
|
|
|
|
|
#
|
|
|
|
|
# -- from CORE-2745 ("build in function LPAD result is wrong if argument is longer then length to padd parameter"):
|
|
|
|
|
# select lpad(c, 1, 'ÿ') as txt_lpad_03 from test;
|
|
|
|
|
# select lpad(b, 1, 'ÿ') as blob_id_04 from test;
|
|
|
|
|
#
|
|
|
|
|
# -- from CORE-2597: LPAD result must be varchar(1) instead of varchar(32765) in this example:
|
|
|
|
|
# select rpad('¿', 1, '¡') as txt_lpad_05a, rpad('À', 1, 'ÿ') as txt_lpad_05b from rdb$database;
|
|
|
|
|
#
|
|
|
|
|
# select
|
|
|
|
|
# lpad('÷øùúûüýþÿ',32765-char_length('÷øùúûüýþÿ'), '%(data)s') as txt_lpad_06a
|
|
|
|
|
# ,lpad('÷øùúûüýþÿ',32765-char_length('÷øùúûüýþÿ'), '%(data)s') as txt_lpad_06b
|
|
|
|
|
# from rdb$database;
|
|
|
|
|
#
|
|
|
|
|
# out %(null_dev)s;
|
|
|
|
|
# select lpad(c, 32765, c) from test; -- this must pass
|
|
|
|
|
# select lpad(c, 32766, c) from test; -- must fail: SQLSTATE = 22001 / ... string truncation / -expected length 32765, actual 32766
|
|
|
|
|
# out;
|
|
|
|
|
#
|
|
|
|
|
# -- select char_length(lpad('', 2147483647, b)) as r_03 from test; -- <<< 152s :-)
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
# ''' % dict(globals(), **locals())
|
|
|
|
|
#
|
|
|
|
|
# f_run_sql = open( os.path.join(context['temp_directory'], 'tmp_func_lpad_iso8859_1.sql'), 'w' )
|
|
|
|
|
# f_run_sql.write( sql_txt.decode('utf8').encode('iso-8859-1') )
|
|
|
|
|
# flush_and_close( f_run_sql )
|
|
|
|
|
# # result: file tmp_func_lpad_iso8859_1.sql is encoded in iso8859_1 (aka 'latin-1')
|
|
|
|
|
#
|
|
|
|
|
# f_run_log = open( os.path.splitext(f_run_sql.name)[0]+'.log', 'w')
|
|
|
|
|
# f_run_err = open( os.path.splitext(f_run_sql.name)[0]+'.err', 'w')
|
|
|
|
|
# subprocess.call( [ context['isql_path'], '-q', '-i', f_run_sql.name ],
|
|
|
|
|
# stdout = f_run_log,
|
|
|
|
|
# stderr = f_run_err
|
|
|
|
|
# )
|
|
|
|
|
# flush_and_close( f_run_log )
|
|
|
|
|
# flush_and_close( f_run_err )
|
|
|
|
|
#
|
|
|
|
|
# # result: output will be encoded in iso9959_1, error log must be empty.
|
|
|
|
|
# with codecs.open(f_run_log.name, 'r', encoding='iso-8859-1' ) as f:
|
|
|
|
|
# stdout_encoded_in_latin_1 = f.readlines()
|
|
|
|
|
#
|
|
|
|
|
# with codecs.open(f_run_err.name, 'r', encoding='iso-8859-1' ) as f:
|
|
|
|
|
# stderr_encoded_in_latin_1 = f.readlines()
|
|
|
|
|
#
|
|
|
|
|
# for i in stdout_encoded_in_latin_1:
|
|
|
|
|
# print( i.encode('utf8') )
|
|
|
|
|
#
|
|
|
|
|
# # NO error must occur:
|
|
|
|
|
# ######################
|
|
|
|
|
# for i in stderr_encoded_in_latin_1:
|
|
|
|
|
# print( 'EXPECTED STDERR: ', i.encode('utf8') )
|
|
|
|
|
#
|
|
|
|
|
# # cleanup:
|
|
|
|
|
# ###########
|
|
|
|
|
# cleanup( (f_run_sql, f_run_log, f_run_err) )
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#---
|
|
|
|
|
#act_1 = python_act('db_1', test_script_1, substitutions=substitutions_1)
|
|
|
|
|
|
|
|
|
|
expected_stdout_1 = """
|
|
|
|
|
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
|
|
|
|
|
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
|
|
|
|
|
TXT_LPAD_03 ¡
|
|
|
|
|
¡
|
|
|
|
|
TXT_LPAD_05A ¿
|
|
|
|
|
TXT_LPAD_05B À
|
|
|
|
|
TXT_LPAD_06A ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚ
|
|
|
|
|
TXT_LPAD_06B ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚ
|
|
|
|
|
EXPECTED STDERR: Statement failed, SQLSTATE = 22001
|
|
|
|
|
EXPECTED STDERR: arithmetic exception, numeric overflow, or string truncation
|
|
|
|
|
EXPECTED STDERR: -string right truncation
|
|
|
|
|
EXPECTED STDERR: -expected length 32765, actual 32766
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
@pytest.mark.version('>=3.0')
|
|
|
|
|
@pytest.mark.xfail
|
2021-04-28 12:42:11 +02:00
|
|
|
|
def test_1(db_1):
|
2021-04-26 20:07:00 +02:00
|
|
|
|
pytest.fail("Test not IMPLEMENTED")
|
|
|
|
|
|
|
|
|
|
|