Skip to content

Commit

Permalink
More number variations
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Oct 12, 2023
1 parent dbcc153 commit f8c2894
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions expr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,13 @@ const_expr::const_expr(prod *p, sqltype *type_constraint)
else if (type->name == "float8")
expr = "'1E+307'::float8";
else
expr = "cast(1 as " + type->name + ")";
expr = "1::" + type->name;
} else if (d6() == 1) {
expr = "2::" + type->name;
} else if (d6() == 1) {
expr = "10::" + type->name;
} else {
expr = "cast(null as " + type->name + ")";
expr = "null::" + type->name;
}
}

Expand Down

0 comments on commit f8c2894

Please sign in to comment.