fix single quote bug. get rid of obselete quick hack. requires DB conversion script...
authormh <mh>
Sun, 14 Apr 2002 22:16:07 +0000 (22:16 +0000)
committermh <mh>
Sun, 14 Apr 2002 22:16:07 +0000 (22:16 +0000)
source/mir/misc/StringUtil.java

index ce470a8..2e702dc 100755 (executable)
@@ -250,21 +250,7 @@ public final class StringUtil {
         */
        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("&acute;");
-                       } else {
-                               temp.append(s.charAt(i));
-                       }
-               }
-               String s2 = temp.toString();
-               //Quickhack end
-
+               String s2 = quote(s, '\'');
                s2 = quote(s2, '\"');
                return s2;
        }