diff options
author | unknown <ramil/ram@ramil.myoffice.izhnet.ru> | 2007-02-06 15:59:37 +0400 |
---|---|---|
committer | unknown <ramil/ram@ramil.myoffice.izhnet.ru> | 2007-02-06 15:59:37 +0400 |
commit | c406b25e3dda11e986bd2e67b8f7a55c30e9f4b1 (patch) | |
tree | e4080eab13dece82823c7789191395478563b83e /sql/sql_analyse.cc | |
parent | 9e639baca48bbbcac09613c58385df7ea89894c5 (diff) | |
parent | 07efbe8c2a54f6475a463c6601dd485d0f320b06 (diff) | |
download | mariadb-git-c406b25e3dda11e986bd2e67b8f7a55c30e9f4b1.tar.gz |
Merge mysql.com:/home/ram/work/b23782/b23782.5.0
into mysql.com:/home/ram/work/b23782/b23782.5.1
sql/sql_analyse.cc:
Auto merged
Diffstat (limited to 'sql/sql_analyse.cc')
-rw-r--r-- | sql/sql_analyse.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_analyse.cc b/sql/sql_analyse.cc index 54ced074dd3..e7decf4a8fc 100644 --- a/sql/sql_analyse.cc +++ b/sql/sql_analyse.cc @@ -86,6 +86,11 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result, else if (param->next) { // first parameter + if (!(*param->item)->fixed && (*param->item)->fix_fields(thd, param->item)) + { + DBUG_PRINT("info", ("fix_fields() for the first parameter failed")); + goto err; + } if ((*param->item)->type() != Item::INT_ITEM || (*param->item)->val_real() < 0) { @@ -100,6 +105,11 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result, goto err; } // second parameter + if (!(*param->item)->fixed && (*param->item)->fix_fields(thd, param->item)) + { + DBUG_PRINT("info", ("fix_fields() for the second parameter failed")); + goto err; + } if ((*param->item)->type() != Item::INT_ITEM || (*param->item)->val_real() < 0) { |