# File lib/tapkit/access/sql.rb, line 645 def sql_for_string( string ) if string.nil? then 'NULL' else if @encoding then string = Utilities.encode(string, @encoding) end escape = Regexp.escape sql_escape_char string = string.to_s.gsub(/'/) { "#{escape}'" } "'#{string}'" end end