https://kotlinlang.org logo
#exposed
Title
# exposed
s

spand

11/17/2020, 2:41 PM
Is it possible to see if
insertIgnore
actually failed or not ?
r

redenergy

11/18/2020, 1:12 AM
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

spand

11/18/2020, 8:59 AM
I think ie. mysql reports the actual number of inserted rows. Its just that exposed does not really expose it (ba dum tsh)
3 Views