We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
FB 4.0.2 windows x64
SQL Script: CREATE DATABASE 'xnet://d:\fbdata\test.fdb' USER 'SYSDBA' PASSWORD 'masterkey';
RECREATE TABLE a( t TIMESTAMP WITH TIME ZONE );
INSERT INTO a VALUES(CURRENT_TIMESTAMP);
SELECT * FROM a;
SET TERM ^; EXECUTE BLOCK AS BEGIN SET BIND OF TIMESTAMP WITH TIME ZONE TO CHAR; END ^ SET TERM ;^
SELECT * FROM a; COMMIT;
WIN1250 works fine: c:\fb\isql.exe -ch WIN1250 -i set_bind_error.sql
UTF8 are failing: c:\fb\isql.exe -ch UTF8 -i set_bind_error.sql
Statement failed, SQLSTATE = 22001 Dynamic SQL Error -SQL error code = -303 -arithmetic exception, numeric overflow, or string truncation -string right truncation -expected length 14, actual 41
The text was updated successfully, but these errors were encountered:
Fix #7548 - SET BIND OF TIMESTAMP WITH TIME ZONE TO CHAR is not worki…
7906148
…ng with UTF8 connection charset.
58c7e00
…ng with UTF8 connection charset. (#7549)
bfe818e
asfernandes
Successfully merging a pull request may close this issue.
FB 4.0.2 windows x64
SQL Script:
CREATE DATABASE 'xnet://d:\fbdata\test.fdb' USER 'SYSDBA' PASSWORD 'masterkey';
RECREATE TABLE a(
t TIMESTAMP WITH TIME ZONE
);
INSERT INTO a VALUES(CURRENT_TIMESTAMP);
SELECT * FROM a;
SET TERM ^;
EXECUTE BLOCK AS
BEGIN
SET BIND OF TIMESTAMP WITH TIME ZONE TO CHAR;
END
^
SET TERM ;^
SELECT * FROM a;
COMMIT;
WIN1250 works fine:
c:\fb\isql.exe -ch WIN1250 -i set_bind_error.sql
UTF8 are failing:
c:\fb\isql.exe -ch UTF8 -i set_bind_error.sql
T
Statement failed, SQLSTATE = 22001
Dynamic SQL Error
-SQL error code = -303
-arithmetic exception, numeric overflow, or string truncation
-string right truncation
-expected length 14, actual 41
The text was updated successfully, but these errors were encountered: