Insert NULL into identity column with auth generated value
----------------------------------------------------------
Key: CORE-5460
URL: http://tracker.firebirdsql.org/browse/CORE-5460
Project: Firebird Core
Issue Type: Improvement
Affects Versions: 3.0.0
Environment: Windows 10 64bit, LibreOffice 5.3.0RC1
Reporter: Gerhard S
Could you support inserting rows where the value for the identity column is
passed as NULL in order to increment the value automatically?.
Example:
create table testtbl (
id integer generated by default as identity (START WITH 0) NOT NULL primary key,
name varchar(15)
);
insert into testtbl values (NULL, 'name1');
This only makes sense, if the column is NOT NULL, I guess. Other database
systems such as MySQL, HSQLDB, MariaDB allow that.
I am aware that the following already works, but using NULL is more flexible
and simpler than
insert into testtbl (name) values ('name1');
By the way, I am using Firebird in conjunction with LibreOffice 5.3.0RC1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel