Currently, the keys from the first map in values are used to determine the columns for an insert, which can lead to some values not being fully inserted.
I ran into this problem with a process that produced maps that may not include all the keys for a table. Finding out that the database was missing data was not fun.
So that the two following queries insert the same data:
Currently, the keys from the first map in
values
are used to determine the columns for an insert, which can lead to some values not being fully inserted.I ran into this problem with a process that produced maps that may not include all the keys for a table. Finding out that the database was missing data was not fun.