Hi,
for information, I remark today that, on ORACLE, batch insert failed if the primary key (generated with a sequence) isn't the first one when using Set Field Order menu in the designer of LLBLGEN.
I use
* .NET Framework : .NET Core 3.1
* LLBLGEN version : 5.6 (5.6.0) RTM
* Database version : ORACLE 11g
* Database driver : Oracle.ManagedDataAccess.Core 2.19.60
I'm not sure if it is a bug of LLBLGEN (perhaps a bug in the database driver) because the query in the output panel seems good.
Generated Sql query:
Query: BEGIN SELECT "NEPTUNE_AC"."MESURE_SEQ".NEXTVAL INTO :p398 FROM DUAL; INSERT INTO "NEPTUNE_AC"."MESURE" ("DATE_MESURE", "ID", "ID_TYPE_MESURE_EQUIPEMENT", "VALEUR") VALUES (:p397, :p398, :p399, :p400) ;END;
Parameter: :p397 : Date. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: 11/05/2019 17:42:00.
Parameter: :p398 : Int64. Length: 0. Precision: 0. Scale: 0. Direction: InputOutput. Value: <undefined value>.
Parameter: :p399 : Int64. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: 4.
Parameter: :p400 : Decimal. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: 335,0.
but the error is really thrown
SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryExecutionException: An exception was caught during the execution of an action query: ORA-06550: line 1, column 16:
PL/SQL: ORA-00932: inconsistent datatypes: expected DATE got NUMBER
ORA-06550: line 1, column 8:
As a workaround,I just change the field order to let the primary column as the first one and all is OK now.