Commit 93984ff6 authored by Alexander Barkov's avatar Alexander Barkov

Fixing compilation problems with this DBUG_ASSERT_AS_PRINTF

For example, with this cmake command line:

cmake . -DCMAKE_C_FLAGS="-DDBUG_ASSERT_AS_PRINTF" \
        -DCMAKE_CXX_FLAGS="-DDBUG_ASSERT_AS_PRINTF"
parent abd3c202
...@@ -59,7 +59,8 @@ uint calc_days_in_year(uint year) ...@@ -59,7 +59,8 @@ uint calc_days_in_year(uint year)
} }
#ifndef DBUG_OFF #ifdef DBUG_ASSERT_EXISTS
static const ulonglong C_KNOWN_FLAGS= C_TIME_NO_ZERO_IN_DATE | static const ulonglong C_KNOWN_FLAGS= C_TIME_NO_ZERO_IN_DATE |
C_TIME_NO_ZERO_DATE | C_TIME_NO_ZERO_DATE |
......
...@@ -380,7 +380,7 @@ my_decimal::my_decimal(Field *field) ...@@ -380,7 +380,7 @@ my_decimal::my_decimal(Field *field)
{ {
init(); init();
DBUG_ASSERT(!field->is_null()); DBUG_ASSERT(!field->is_null());
#ifndef DBUG_OFF #ifdef DBUG_ASSERT_EXISTS
my_decimal *dec= my_decimal *dec=
#endif #endif
field->val_decimal(this); field->val_decimal(this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment