# File lib/dbd/pg/database.rb, line 320
320:     def quote_array_elements( value )
321:         # XXX is this method still being used?
322:         case value
323:         when Array
324:                         '{'+ value.collect{|v| quote_array_elements(v) }.join(',') + '}'
325:         when String
326:                         '"' + value.gsub(/\\/){ '\\\\' }.gsub(/"/){ '\\"' } + '"'
327:         else
328:             quote( value ).sub(/^'/,'').sub(/'$/,'') 
329:         end
330:     end