1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

- Portability fixes for HP compiler on HPUX11 (backport from 4.0 tree)

- sql_analyse.cc: Fixed bug in decimal handling
This commit is contained in:
lenz@mysql.com
2002-12-04 16:16:06 +01:00
parent b9d8e52145
commit 1935183975
7 changed files with 26 additions and 9 deletions

View File

@@ -641,7 +641,7 @@ bool analyse::end_of_records()
case FIELD_TYPE_DECIMAL:
ans.append("DECIMAL", 7);
// if item is FIELD_ITEM, it _must_be_ Field_num in this case
if (((Field_num*) (*f)->item)->zerofill)
if (((Field_num*) ((Item_field*) (*f)->item)->field)->zerofill)
ans.append(" ZEROFILL");
break;
default: