mariadb/mysql-test/suite/funcs_1/t
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
..
charset_collation.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
innodb_bitdata.test WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
innodb_cursors.test WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
innodb_func_view.test copy from test-extra-5.0 to main tree 2007-02-06 19:07:48 +01:00
innodb_storedproc_02.test WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
innodb_storedproc_03.test WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
innodb_storedproc_06.test 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
innodb_storedproc_07.test WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
innodb_storedproc_08.test 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
innodb_storedproc_10.test WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
innodb_trig_03.test 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
innodb_trig_03e.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
innodb_trig_08.test 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
innodb_trig_09.test Bug#36788 Multiple funcs_1 'trig' tests are failing on vanilla builds 2008-06-02 21:57:11 +02:00
innodb_trig_0102.test Bug#36788 Multiple funcs_1 'trig' tests are failing on vanilla builds 2008-06-02 21:57:11 +02:00
innodb_trig_0407.test 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
innodb_trig_1011ext.test Bug#36788 Multiple funcs_1 'trig' tests are failing on vanilla builds 2008-06-02 21:57:11 +02:00
innodb_trig_frkey.test Fix for 2008-06-16 20:39:58 +02:00
innodb_views.test WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
is_basics_mixed.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_character_sets.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
is_cml_innodb.test Fix for 2008-06-16 20:39:58 +02:00
is_cml_memory.test Fix for 2008-06-16 20:39:58 +02:00
is_cml_myisam.test Fix for 2008-06-16 20:39:58 +02:00
is_coll_char_set_appl.test Fix for Bug#43383 main.variables-big : Weak testing code and result 2009-03-26 19:12:19 +01:00
is_collations.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
is_column_privileges.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_column_privileges_is_mysql_test.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_columns.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_columns_innodb.test Fix for 2008-06-16 20:39:58 +02:00
is_columns_is.test instead of having win/notwin tests that only differ in results, 2012-02-23 09:24:11 +01:00
is_columns_is_embedded.test * change the test to use is_embedded.inc instead of a direct check 2013-12-22 17:11:38 +01:00
is_columns_memory.test Fix for 2008-06-16 20:39:58 +02:00
is_columns_myisam.test Fix for 2008-06-16 20:39:58 +02:00
is_columns_myisam_embedded.test Bug#37380 - Test funcs_1.is_columns_myisam_embedded fails on OS X 2008-07-01 14:44:47 -04:00
is_columns_mysql.test Fix for 2008-06-16 20:39:58 +02:00
is_columns_mysql_embedded.test Fix for 2008-06-16 20:39:58 +02:00
is_engines.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
is_engines_archive.test Post merge fixes after 2008-03-07 20:18:14 +01:00
is_engines_blackhole.test Post merge fixes after 2008-03-07 20:18:14 +01:00
is_engines_csv.test Post merge fixes after 2008-03-07 20:18:14 +01:00
is_engines_federated.test Fix several buildot errors on Windows 2012-03-16 17:47:31 +01:00
is_engines_innodb.test Percona-Server-5.6.14-rel62.0 merge 2013-12-22 17:06:50 +01:00
is_engines_memory.test Post merge fixes after 2008-03-07 20:18:14 +01:00
is_engines_merge.test Post merge fixes after 2008-03-07 20:18:14 +01:00
is_engines_myisam.test Post merge fixes after 2008-03-07 20:18:14 +01:00
is_events.test rename maria to aria 2010-09-12 18:40:01 +02:00
is_key_column_usage.test Fixing test cases 2012-08-23 00:32:25 +03:00
is_key_column_usage_embedded.test Fixing test cases 2012-08-23 00:32:25 +03:00
is_routines.test Back-port of changes made to 6.0-maria (to remove compiler warnings or fix simple test failures) 2008-07-01 22:47:09 +02:00
is_routines_embedded.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
is_schema_privileges.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_schema_privileges_is_mysql_test.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_schemata.test Fix for 2008-06-16 20:39:58 +02:00
is_schemata_embedded.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
is_schemata_is_mysql_test.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_statistics.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_statistics_is.test WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
is_statistics_mysql.test Fixing test cases 2012-08-23 00:32:25 +03:00
is_statistics_mysql_embedded.test Fixing test cases 2012-08-23 00:32:25 +03:00
is_table_constraints.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_table_constraints_is.test WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
is_table_constraints_mysql.test Fixing test cases 2012-08-23 00:32:25 +03:00
is_table_constraints_mysql_embedded.test Fixing test cases 2012-08-23 00:32:25 +03:00
is_table_privileges.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_tables.test Fix for 2008-06-16 20:39:58 +02:00
is_tables_embedded.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
is_tables_innodb.test Fix for 2008-06-16 20:39:58 +02:00
is_tables_is.test remove PBXT 2013-08-30 11:25:49 +02:00
is_tables_is_embedded.test remove PBXT 2013-08-30 11:25:49 +02:00
is_tables_memory.test Fix for 2008-06-16 20:39:58 +02:00
is_tables_myisam.test Fix for 2008-06-16 20:39:58 +02:00
is_tables_myisam_embedded.test Fix for 2008-06-16 20:39:58 +02:00
is_tables_mysql.test Fixing test cases 2012-08-23 00:32:25 +03:00
is_tables_mysql_embedded.test Fixing test cases 2012-08-23 00:32:25 +03:00
is_triggers.test Back-port of changes made to 6.0-maria (to remove compiler warnings or fix simple test failures) 2008-07-01 22:47:09 +02:00
is_triggers_embedded.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
is_user_privileges.test MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
is_views.test Back-port of changes made to 6.0-maria (to remove compiler warnings or fix simple test failures) 2008-07-01 22:47:09 +02:00
is_views_embedded.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_bitdata.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_cursors.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_func_view.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_storedproc_02.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_storedproc_03.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_storedproc_06.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_storedproc_07.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_storedproc_08.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_storedproc_10.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_trig_03.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_trig_03e.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_trig_08.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_trig_09.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_trig_0102.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_trig_0407.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_trig_1011ext.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
memory_views.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_bitdata.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_cursors.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_func_view.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_storedproc_02.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_storedproc_03.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_storedproc_06.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_storedproc_07.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_storedproc_08.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_storedproc_10.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_trig_03.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_trig_03e.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_trig_08.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_trig_09.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_trig_0102.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_trig_0407.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_trig_1011ext.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
myisam_views-big.test Test which runs slowly on some machines, is marked as big 2010-12-31 12:07:34 +01:00
processlist_priv_no_prot.test after-merge fixes 2015-06-16 23:55:56 +02:00
processlist_priv_ps.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
processlist_val_no_prot.test after-merge fixes 2015-06-16 23:55:56 +02:00
processlist_val_ps.test 1. Upmerge of fix for the bugs 2008-06-18 19:23:55 +02:00
row_count_func-master.opt Patch for Bug#21818 (Return value of ROW_COUNT() is incorrect 2010-05-14 09:28:51 +04:00
row_count_func.test Patch for Bug#21818 (Return value of ROW_COUNT() is incorrect 2010-05-14 09:28:51 +04:00
storedproc.test MDEV-10138 Support for decimals up to 38 digits 2016-06-22 22:04:55 +03:00