summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <igor@olga.mysql.com>2007-05-21 16:44:36 -0700
committerunknown <igor@olga.mysql.com>2007-05-21 16:44:36 -0700
commit14cb59d8bb0531cec3955fb3718455e7742d5db8 (patch)
tree1285e097139f5599e8de8701136805f3b56e36e7 /sql/sql_table.cc
parentf3b78f34e511305fec193f4cdbc8710f26baf993 (diff)
downloadmariadb-git-14cb59d8bb0531cec3955fb3718455e7742d5db8.tar.gz
Added initializations to avoid compiler warnings.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index ed1c49d768a..a8ed2a53601 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -4035,8 +4035,8 @@ err:
*/
if (error_if_not_empty && thd->row_count)
{
- const char *f_val;
- enum enum_mysql_timestamp_type t_type;
+ const char *f_val= 0;
+ enum enum_mysql_timestamp_type t_type= MYSQL_TIMESTAMP_DATE;
switch (new_datetime_field->sql_type)
{
case MYSQL_TYPE_DATE: