Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-13742

Provide an error for truncated DECIMAL field

    XMLWordPrintable

Details

    Description

      Provide a server mode to prevent truncation of numerical data:

      Test case :

      use test;
      set sql_mode = 'STRICT_TRANS_TABLES';
      drop table if exists t;
      create table t(c DECIMAL(4,2) not null);
      insert into t(c) values (1.234);
      show warnings;
      select * from t;
      

      Instead of warning provide a mechanism to error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kjoiner Kyle Joiner (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.