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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user