I inherited an old piece of software and the code checks user input for containing a single quote character '
before construction an SQL statement using the string concatenation.
Is this sufficient to avoid SQL injection (besides being bad style) or do I have to take immediate action and change it to parameter usage?