mariadb/mysql-test/suite/maria
Monty 34eb10e406 MDEV-10138 Support for decimals up to 38 digits
Decimals with float, double and decimal now works the following way:

- DECIMAL_NOT_SPECIFIED is used when declaring DECIMALS without a firm number
  of decimals.  It's only used in asserts and my_decimal_int_part.
- FLOATING_POINT_DECIMALS (31) is used to mark that a FLOAT or DOUBLE
  was defined without decimals. This is regarded as a floating point value.
- Max decimals allowed for FLOAT and DOUBLE is FLOATING_POINT_DECIMALS-1
- Clients assumes that float and double with decimals >= NOT_FIXED_DEC are
  floating point values (no decimals)
- In the .frm decimals=FLOATING_POINT_DECIMALS are used to define
  floating point for float and double (31, like before)

To ensure compatibility with old clients we do:

- When storing float and double, we change NOT_FIXED_DEC to
  FLOATING_POINT_DECIMALS.
- When creating fields from .frm we change for float and double
  FLOATING_POINT_DEC to NOT_FIXED_DEC
- When sending definition for a float/decimal field without decimals
  to the client as part of a result set we convert NOT_FIXED_DEC to
  FLOATING_POINT_DECIMALS.
- variance() and std() has changed to limit the decimals to
  FLOATING_POINT_DECIMALS -1 to not get the double converted floating point.
  (This was to preserve compatiblity)
- FLOAT and DOUBLE still have 30 as max number of decimals.

Bugs fixed:

variance() printed more decimals than we support for double values.

New behaviour:
- Strings now have 38 decimals instead of 30 when converted to decimal
- CREATE ... SELECT with a decimal with > 30 decimals will create a column
  with a smaller range than before as we are trying to preserve the number of
  decimals.


Other changes
- We are now using the obsolete bit FIELDFLAG_LEFT_FULLSCREEN to specify
  decimals > 31
- NOT_FIXED_DEC is now declared in one place
- For clients, NOT_FIXED_DEC is always 31 (to ensure compatibility).
  On the server NOT_FIXED_DEC is DECIMAL_NOT_SPECIFIED (39)
- AUTO_SEC_PART_DIGITS is taken from DECIMAL_NOT_SPECIFIED
- DOUBLE conversion functions are now using DECIMAL_NOT_SPECIFIED instead of
  NOT_FIXED_DEC
2016-06-22 22:04:55 +03:00
..
alter.result 10.0-base merge 2014-02-03 15:22:39 +01:00
alter.test Fixed MDEV-4970: Wrong result with Aria table populated with disabled keys 2014-01-25 15:41:08 +02:00
compat_aliases-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
distinct.result 5.3 merge. 2013-05-20 12:36:30 +02:00
distinct.test 5.3 merge. 2013-05-20 12:36:30 +02:00
encrypt-wrong-key.result MDEV-8724 Assertion `rc == 0' failed in ma_decrypt on reading an Aria table 2016-01-28 14:06:05 +02:00
encrypt-wrong-key.test MDEV-9502 maria.encrypt-wrong-key fails with embedded server 2016-02-01 01:01:29 +02:00
group_commit.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
group_commit.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
icp.result MDEV-6066: Merge new defaults from 5.6 and 5.7 (defaults changed, QC can be stopped with no-zero size) 2015-09-04 10:33:56 +02:00
icp.test Moved maria tests to suite/maria 2012-05-16 18:46:02 +03:00
insert_select-7314.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
insert_select-7314.test 5.5 merge 2015-01-21 12:03:02 +01:00
insert_select.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
insert_select.test Fixed MDEV-7314: Deadlock when doing insert-select with Aria 2015-01-18 20:38:07 +02:00
lock.result More trivial test result updates 2013-07-08 18:29:52 +04:00
lock.test Fixed MDEV-366: Assertion `share->reopen == 1' failed in maria_extra on DROP TABLE which is locked twice 2012-08-15 14:37:55 +03:00
locking.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
locking.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-autozerofill.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-autozerofill.test When one does 'REPAIR TABLE', update uuid() to the current system 2013-05-14 18:32:16 +03:00
maria-big.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-big.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-big2.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-big2.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-connect.result MDEV-26: Global transaction ID 2013-03-26 10:35:34 +01:00
maria-connect.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-gis-recovery.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-gis-recovery.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-gis-recovery.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-gis-rtree-dynamic.result 10.0-monty merge 2013-07-21 16:39:19 +02:00
maria-gis-rtree-dynamic.test merge with mysql-5.5.30 minus few incorrect or not applicable changesets 2013-02-28 18:42:49 +01:00
maria-gis-rtree-trans.result 10.0-monty merge 2013-07-21 16:39:19 +02:00
maria-gis-rtree-trans.test merge with mysql-5.5.30 minus few incorrect or not applicable changesets 2013-02-28 18:42:49 +01:00
maria-gis-rtree.result 10.0-monty merge 2013-07-21 16:39:19 +02:00
maria-gis-rtree.test merge with mysql-5.5.30 minus few incorrect or not applicable changesets 2013-02-28 18:42:49 +01:00
maria-mvcc.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-mvcc.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-no-logging.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-no-logging.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-page-checksum.result fix for maria.maria test 2013-07-13 22:29:17 +02:00
maria-page-checksum.test fix for maria.maria test 2013-07-13 22:29:17 +02:00
maria-partitioning.result Post-merge buildbot fixes: 2013-07-05 19:57:48 +04:00
maria-partitioning.test Fixed LP:990187 Assertion `share->reopen == 1' failed at maria_extra on ADD PARTITION 2012-05-16 22:04:48 +03:00
maria-preload.result Fixed MDEV-3815: Aria engine return "The table is full" (ERROR 1114) inserting record, while MyISAM and InnoDB doesn't 2014-02-11 19:40:33 +02:00
maria-preload.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-purge.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-purge.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recover-master.opt MDEV-8542 - The "aria_recover" variable should be renamed "aria_recover_options" 2015-11-26 11:34:17 +04:00
maria-recover.result MDEV-8542 - The "aria_recover" variable should be renamed "aria_recover_options" 2015-11-26 11:34:17 +04:00
maria-recover.test MDEV-8542 - The "aria_recover" variable should be renamed "aria_recover_options" 2015-11-26 11:34:17 +04:00
maria-recovery-big-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-big.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery-big.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-bitmap-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-bitmap.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery-bitmap.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-rtree-ft-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-rtree-ft.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery-rtree-ft.test merge with mysql-5.5.30 minus few incorrect or not applicable changesets 2013-02-28 18:42:49 +01:00
maria-recovery.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery2-master.opt --getopt-prefix-matching command-line option 2015-02-10 10:21:15 +01:00
maria-recovery2.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery2.test 5.5 merge 2013-06-06 17:51:28 +02:00
maria-recovery3-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery3.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery3.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-ucs2.result fix the maria suite 2013-07-12 23:07:32 +02:00
maria-ucs2.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria.result Merge branch '10.2' into bb-10.2-mdev9543 2016-04-07 00:54:39 +03:00
maria.test Fixed MDEV-3815: Aria engine return "The table is full" (ERROR 1114) inserting record, while MyISAM and InnoDB doesn't 2014-02-11 19:40:33 +02:00
maria2.result MDEV-8466 CAST works differently for DECIMAL/INT vs DOUBLE for empty strings 2015-09-17 11:05:07 +04:00
maria2.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria3.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria3.test fix the maria suite 2013-07-12 23:07:32 +02:00
maria_notembedded.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria_notembedded.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria_partition.result Fix for MDEV-6493: Assertion `table->file->stats.records > 0 || error' failure, or 'Invalid write' valgrind warnings, or crash on scenario with Aria table, view, LOCK TABLES 2014-07-30 13:27:52 +03:00
maria_partition.test Fix for MDEV-6493: Assertion `table->file->stats.records > 0 || error' failure, or 'Invalid write' valgrind warnings, or crash on scenario with Aria table, view, LOCK TABLES 2014-07-30 13:27:52 +03:00
maria_showlog_error.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria_showlog_error.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
max_length.result Update test results to fix trivial test failures in parts testsuite 2013-07-07 14:09:52 +04:00
max_length.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
mrr.result Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
mrr.test Moved maria tests to suite/maria 2012-05-16 18:46:02 +03:00
optimize.result MDEV-3870 - Valgrind warnings on OPTIMIZE MyISAM or Aria TABLE with disabled 2015-06-09 23:24:03 +04:00
optimize.test MDEV-3870 - Valgrind warnings on OPTIMIZE MyISAM or Aria TABLE with disabled 2015-06-09 23:24:03 +04:00
ps_maria.result MDEV-10138 Support for decimals up to 38 digits 2016-06-22 22:04:55 +03:00
ps_maria.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
small_blocksize-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
small_blocksize.result Post-merge buildbot fixes: 2013-07-05 19:57:48 +04:00
small_blocksize.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
suite.pm MDEV-8542 - The "aria_recover" variable should be renamed "aria_recover_options" 2015-11-26 11:34:17 +04:00
truncate.result Fixed MDEV-3890: Server crash inserting record on a temporary table after truncating it 2013-01-25 21:40:42 +02:00
truncate.test Fixed MDEV-3890: Server crash inserting record on a temporary table after truncating it 2013-01-25 21:40:42 +02:00