Project

General

Profile

7035-20230331.patch

Dănuț Filimon, 03/31/2023 03:54 AM

Download (1.03 KB)

View differences:

new/src/com/goldencode/p2j/persist/FQLPreprocessor.java 2023-03-31 07:51:58 +0000
6113 6113
                        case DECIMAL:
6114 6114
                           return new decimal(value);
6115 6115
                        case TEXT:
6116
                           assert (value.charAt(0) == '\'');
6117
                           assert (value.charAt(value.length() - 1) == '\'');
6118
                           value = value.substring(1, value.length() - 1);
6116
                           if (value.startsWith("\'") && value.endsWith("\'") && value.length() > 1)
6117
                           {
6118
                              value = value.substring(1, value.length() - 1);
6119
                           }
6119 6120
                           return new character(value);
6120 6121
                        default:
6121 6122
                           throw new IllegalStateException("No matching datatype for the extracted value.");