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

Can not insert decimal into JSON type, CONNECT engine

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.1, 10.2.5, 10.2
    • 10.2
    • None
    • Ubuntu 16.04

    Description

      Decimal values are inserted as NULL.

      create table t3 (b decimal(10,2)) engine=CONNECT table_type=JSON ;
       
      insert into t3 values  (5.28);
      select * from t3;
      +------+
      | b    |
      +------+
      | NULL |
      +------+
      

      It worked as expected with other types of tables (CSV, DOS).

      If decimal column is used in persistent column, results were correct (but NULL if column b1 is declared as decimal)

      create table t1 
      	(b decimal(10,2), b1 int as (b*100) persistent) engine=CONNECT table_type=JSON ;
       
      insert into t1 values ( 8.59, default), ('5.28', default);
      select * from t1;
      +------+------+
      | b    | b1   |
      +------+------+
      | NULL |  859 |
      | NULL |  528 |
      +------+------+
      

      Attachments

        Activity

          People

            bertrandop Olivier Bertrand
            alice Alice Sherepa
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.