Skip to content

Commit

Permalink
better null check
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Oct 16, 2024
1 parent 09ba73a commit ea57217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/firebolt/jdbc/type/BaseType.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public enum BaseType {
private static final class TypePredicate {
private static final Predicate<String> mayBeFloatingNumber = Pattern.compile("[.eE]").asPredicate();
}
public static final String NULL_VALUE = "NULL";
public static final String NULL_VALUE = "\\N";
private final Class<?> type;
private final Predicate<String> shouldTryFallback;
private final CheckedFunction<StringToColumnTypeConversion, Object>[] transformFunctions;
Expand Down Expand Up @@ -135,7 +135,7 @@ private static String checkInfinity(String s) {
}

public static boolean isNull(String value) {
return NULL_VALUE.equalsIgnoreCase(value);
return NULL_VALUE.equals(value);
}

private static boolean isNan(String value) {
Expand Down

0 comments on commit ea57217

Please sign in to comment.