summaryrefslogtreecommitdiff
path: root/storage/connect/tabutil.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2013-12-28 16:56:51 +0100
committerOlivier Bertrand <bertrandop@gmail.com>2013-12-28 16:56:51 +0100
commit32284eba5cfb82756799b0a88718aee272fd843c (patch)
treeca87b78f8c062e0dadfb46296788aed8471d9c38 /storage/connect/tabutil.cpp
parentc055e5e0efcdd3750550230a483cdf8847b3d414 (diff)
downloadmariadb-git-32284eba5cfb82756799b0a88718aee272fd843c.tar.gz
- Fix variables used uninitialized
modified: storage/connect/filamdbf.cpp storage/connect/tabutil.cpp
Diffstat (limited to 'storage/connect/tabutil.cpp')
-rw-r--r--storage/connect/tabutil.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/connect/tabutil.cpp b/storage/connect/tabutil.cpp
index de5f4a1004b..5e10c0a6846 100644
--- a/storage/connect/tabutil.cpp
+++ b/storage/connect/tabutil.cpp
@@ -218,7 +218,8 @@ PQRYRES TabColumns(PGLOBAL g, THD *thd, const char *db,
if (type == TYPE_DECIM)
prec = ((Field_new_decimal*)fp)->precision;
else
- prec = (prec == NOT_FIXED_DEC) ? 0 : fp->field_length;
+ prec = fp->field_length;
+// prec = (prec(???) == NOT_FIXED_DEC) ? 0 : fp->field_length;
len = fp->char_length();
fmt = NULL;