Hi,
Fixed a couple of bugs and renovated ExecInitDml() a bit. Patch attached.
Regards,Marko Tiikkaja