*/
public static String quote(String s)
{
- //String s2 = quote(s, '\'');
-
- //Quickhack
- //Because of '?-Bug in Postgresql-JDBC-Driver
- StringBuffer temp = new StringBuffer();
- for(int i=0;i<s.length();i++){
- if(s.charAt(i)=='\''){
- temp.append("´");
- } else {
- temp.append(s.charAt(i));
- }
- }
- String s2 = temp.toString();
- //Quickhack end
-
+ String s2 = quote(s, '\'');
s2 = quote(s2, '\"');
return s2;
}