I am new to tcl programming and facing one issue.
I have written SQLite query to insert data in SQLite database as below
set insertRecordQuery “Insert into PatientSelectRecords ( MessageControlId, Hl7InboundRawMessage, InterfaceName, IsProcessed,
EventType, FirstName, LastName, AriaConnectContract, DateOfBirth )
values
( ‘$messageControlId’, ‘$hl7RawMessage’, ‘$interfaceName’, ‘N’, ‘$eventType’, ‘$firstName’,
‘$lastName’, ‘$convertedXlate’ , ‘$dateOfBirth’)”
Here my hl7RawMessage parameter contains some text with ‘ character. e.g. Children’s Hospital
Occurance of above character is throwing exception as incorrect syntax near ‘
Thanks