Is it possible to see if `insertIgnore` actually f...
# exposed
s
Is it possible to see if
insertIgnore
actually failed or not ?
r
I might be wrong, but for all vendors
insertIgnore
is converted to sql queries similiar to INSERT IGNORE in MySQL, and that IGNORE modifier specifically designed to silence insertion failures. So, I believe actual failures can't be detected using Exposed.
However, I suggest you reading through the documentation of your target database because IGNORE might have some intricate implementation details in different RDBMS.
s
I think ie. mysql reports the actual number of inserted rows. Its just that exposed does not really expose it (ba dum tsh)