WSSQL-30 only replace WILCARD once

Signed-off-by: rpastrana <rodrigo.pastrana@lexisnexis.com>
WSSSQL-30 check for NULL pointer

Signed-off-by: rpastrana <rodrigo.pastrana@lexisnexis.com>
Merge pull request #23 from rpastrana/WSSQL-30-multipletablewildcardcore

WSSQL-30 only replace WILCARD once