summaryrefslogtreecommitdiff
path: root/sql/sql_analyse.cc
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-11-09 13:26:46 +0200
committerunknown <monty@hundin.mysql.fi>2002-11-09 13:26:46 +0200
commit212fe9d13ed51de7e858dedd2af71b115270af14 (patch)
treedc4bb2a2343e6494e99b3429fc1247fa2dd18281 /sql/sql_analyse.cc
parentb3a8b8bd193dc9b22b8d5bc28c894c49f6153647 (diff)
downloadmariadb-git-212fe9d13ed51de7e858dedd2af71b115270af14.tar.gz
Portability fixes for HP compiler and HPUX11
Docs/internals.texi: Added protocol information (needs to be converted to texi and merged with the old documentation) configure.in: Updates for HP compiler (cc) include/my_global.h: Add option to handle bugs in 'inline' for HP compiler libmysql/password.c: Portability fix (for HP compiler) mysys/hash.c: Portability fix (for HP compiler) mysys/my_static.c: Portability fix (for HPUX11) mysys/my_static.h: Portability fix (for HPUX11) mysys/my_tempnam.c: Portability fix (for HPUX11) sql/sql_analyse.cc: Fixed bug in decimal handling
Diffstat (limited to 'sql/sql_analyse.cc')
-rw-r--r--sql/sql_analyse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_analyse.cc b/sql/sql_analyse.cc
index bbe82653190..96bbd731882 100644
--- a/sql/sql_analyse.cc
+++ b/sql/sql_analyse.cc
@@ -677,7 +677,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: