Update: Instead of disconnect / reconnect, I made it so that in case of 1084 errors I rollback and retry the same INSERT again. It worked... It's not beautiful code but it's working. So really I think something's fishy in dco2.c If someone tell me what should be investigated I could look into the issue. Chris