Mario Andhika
01/20/2025, 9:33 AMBatchDataInconsistentException
when doing batch insert. It says Can't add a new batch because columns: tracker.id_tracker don't have default values. DB defaults are not supported in batch inserts
. That said , my column id_tracker is supposed to be auto-generated from a sequence in the database.Chantal Loncle
01/20/2025, 4:48 PMThat said , my column id_tracker is supposed to be auto-generated from a sequence in the database.Could you share how this column (&/or sequence) is being defined in the Exposed table? And the database being used. If the column data is being auto-generated, for example, by something not monitored by Exposed (like a database trigger or a custom
Column.withDefinition()
modifier), it should be marked using Column.databaseGenerated()
to ensure that Exposed does not fail early on batch insert.Mario Andhika
01/21/2025, 10:49 AM