1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-31 15:50:51 +03:00
Files
mariadb/mysql-test/r
Guilhem Bichot 12e822039d Fix for BUG#42980 "Client doesn't set NUM_FLAG for DECIMAL and TIMESTAMP":
DECIMAL and TIMESTAMP used to have NUM_FLAG, but NEWDECIMAL was forgotten.
It's correct that TIMESTAMP does not have the flag nowadays (manual will be updated, connectors
developers will be notified).

client/mysqldump.c:
  IS_NUM_FIELD(f) removed and replaced by its definition (f>flags & NUM_FLAG).
include/mysql.h:
  - IS_NUM_FIELD() is removed because name is too close to IS_NUM() and it is not used a lot
  - INTERNAL_NUM_FIELD() is removed:
    * it forgets to test NEWDECIMAL (when IS_NUM() was updated for NEWDECIMAL we forgot
    to update INTERNAL_NUM_FIELD()), that's why client didn't mark NEWDECIMAL with NUM_FLAG (a bug).
    * it has an obsolete test for length of the TIMESTAMP field: test became accidentally wrong when length
    of TIMESTAMP was changed to always be 19 (when the format was changed from YYYYMMDDhhmmss to
    YYYY-MM-DD hh:mm:ss), never 8 or 14 anymore. That obsolete test caused TIMESTAMP to lose NUM_FLAG,
    which was an accidental but good change (see below).
    * IS_NUM() should be used instead
  - IS_NUM(f) is changed: TIMESTAMP used to be parsable as a number without quotes (when it was formatted as
  "YYYYMMDDhhmmss"); but it is not anymore (now that it is "YYYY-MM-DD hh:mm:ss"), so it should not have NUM_FLAG
  (mysqldump needs to quote TIMESTAMP values), so IS_NUM() should return false for it.
libmysqld/lib_sql.cc:
  use IS_NUM() instead of INTERNAL_NUM_FIELD()
mysql-test/r/bigint.result:
  result change: NEWDECIMAL fields now have NUM_FLAG (32768)
mysql-test/r/metadata.result:
  result change: NEWDECIMAL fields now have NUM_FLAG (32768)
mysql-test/r/mysqldump.result:
  DECIMAL columns are not quoted anymore by mysqldump. Which is ok, the parser does not need '' for them
mysql-test/r/ps_2myisam.result:
  result change: NEWDECIMAL fields now have NUM_FLAG (32768)
mysql-test/r/ps_3innodb.result:
  result change: NEWDECIMAL fields now have NUM_FLAG (32768)
mysql-test/r/ps_4heap.result:
  result change: NEWDECIMAL fields now have NUM_FLAG (32768)
mysql-test/r/ps_5merge.result:
  result change: NEWDECIMAL fields now have NUM_FLAG (32768)
mysql-test/suite/ndb/r/ps_7ndb.result:
  result change: NEWDECIMAL fields now have NUM_FLAG (32768)
mysql-test/t/metadata.test:
  test for BUG#42980
sql-common/client.c:
  use IS_NUM() instead of INTERNAL_NUM_FIELD()
2009-09-30 12:25:50 +02:00
..
2009-08-27 15:59:25 +05:00
2009-02-10 16:27:35 +03:00
2009-09-10 11:58:13 +05:00
2009-08-20 14:30:59 +02:00
2009-09-10 03:18:29 -06:00
2009-01-23 13:22:05 +01:00
2009-06-25 13:44:50 +05:00
2009-08-10 15:46:20 -03:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-04 12:39:56 +05:00
2009-07-15 15:43:45 +05:30
2009-09-10 03:18:29 -06:00
2009-06-01 16:00:38 +04:00
2009-09-11 01:15:41 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-03-27 10:18:06 +08:00
2009-02-07 16:50:31 +01:00
2009-01-23 13:22:05 +01:00
2009-04-29 07:59:10 +05:00
2009-02-26 18:17:06 +01:00
2009-02-03 14:45:17 +01:00
2009-05-06 15:00:14 +05:30
2009-06-15 17:36:51 +03:00
2009-02-10 16:27:35 +03:00
2009-04-09 14:38:50 +05:00
2009-09-10 03:18:29 -06:00
2009-03-16 20:54:50 +01:00
2008-10-23 21:27:09 +02:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-01-26 15:20:33 +01:00
2009-05-08 21:24:15 +04:00
2009-02-19 18:22:28 +01:00
2009-02-03 14:45:17 +01:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-02-19 17:59:00 +04:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-06-10 11:58:36 +03:00
2009-09-10 03:18:29 -06:00
2009-08-31 16:40:35 +03:00
2008-12-13 19:42:12 +00:00
2009-02-09 22:00:15 +01:00
2009-02-19 18:24:25 -05:00
2009-09-10 03:18:29 -06:00
2008-12-09 17:31:22 +04:00
2009-01-13 15:04:28 +01:00
2009-02-14 20:14:10 +03:00
2009-09-10 03:18:29 -06:00
2009-05-15 12:42:57 +04:00
2009-05-15 12:11:07 +05:00
2009-05-10 21:20:35 +05:00
2009-09-10 03:18:29 -06:00
2009-02-12 11:52:01 +02:00