Fix ESQL/C generation when using a variable cursorname
Authored by: mikeaubury 2016-05-30
Parent: [r12528]
Child: [r12530]