New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert null into a field (type of date) of externall table will insert '17.11.1858' [CORE3804] #4147
Comments
Modified by: Yakushev.Y (yyy)summary: Insert null into a field of externall table will insert '17.11.1858' => Insert null into a field (type of date) of externall table will insert '17.11.1858' |
Commented by: @dyemanov NULLs are not supported for external tables. However, I'd rather prefer to see an error raised in this case. |
Commented by: Yakushev.Y (yyy) It'a a pity. :( I also tried to use it in order to transfer big amount of data across databases, as the fastest way to load data is to export table in a copy of it in external table and then insert it like this. {{{ /* формируем начало для скрипта копирования таблицы */ /* получаем данные для SQL */ Error won't help me, I'll treat '17.11.1858' as null. |
Commented by: @krilbe You could import/export date data as varchar and use cast in select/insert. In that case you could use empty string or some marker, e.g. '<NULL>' for nulls. |
Commented by: Yakushev.Y (yyy) That what I'll do. Issue is closed. But may be FB team will think of adding support for NULLs in external tables. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: Yakushev.Y (yyy)
Test case:
CREATE TABLE ET EXTERNAL 'E:\FBEXTERNAL\ET.DAT' (
ID INTEGER,
DATE_FIELD DATE
);
insert into et (id,date_field) values (1,null)
select * from et
============ ===========
1 17-NOV-1858
Is this a bug ?
The text was updated successfully, but these errors were encountered: