1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fix set_limit to be uniform with all calls.

Fix of set_limit in case of an error (actually impossible case but better it will be right)
This commit is contained in:
unknown
2012-02-10 16:23:18 +02:00
parent 6e9b06d90b
commit 804c69ab83
2 changed files with 3 additions and 3 deletions

View File

@ -2847,7 +2847,7 @@ void st_select_lex_unit::set_limit(st_select_lex *sl)
DBUG_ASSERT(fix_fields_successful);
}
val= fix_fields_successful ? item->val_uint() : HA_POS_ERROR;
val= fix_fields_successful ? item->val_uint() : 0;
}
else
val= ULL(0);