Fix CDB_QueryStatements with multi-line dollar-quoting

CDB-1902 #resolve
Merge remote-tracking branch 'origin/fix/CDB-1797' into release/2.10.1