You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SELECT results in an error std::bad_alloc, after running for a while. Is this expected? I checked with MySQL, which seems to immediately return NULL for an overly large size argument.
Anyway, in this case I think rpad should return an error, as the maximum string size our system can handle is 2^31. I think a better way of solving this would be to turn the second argument into type INTEGER, instead of of type BIGINT. Then values of this size could not be passed to rpad in the first place. A bad_alloc can still potentially occur if the user doesn't have 2GB of memory, but that is then the expected behavior.
Consider the following statement:
The
SELECT
results in an errorstd::bad_alloc
, after running for a while. Is this expected? I checked with MySQL, which seems to immediately returnNULL
for an overly large size argument.I found this based on commit 11e5161.
The text was updated successfully, but these errors were encountered: