You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/01/10 09:50:01 UTC

[GitHub] [shardingsphere] zt9788 edited a comment on issue #14647: No value specified for parameter in Mysql Insert when use ifnull

zt9788 edited a comment on issue #14647:
URL: https://github.com/apache/shardingsphere/issues/14647#issuecomment-1008699810


   I try to debug statment  the sql is:
   
   `
   INSERT INTO XXXX(    A,    b,    c,    d,    e,    f,    g, h) VALUES (null, null, 'c', 1, 'e',  ifnull('2022-01-07 14:50:07.0',now()),  '220107-010821375503616', ** NOT SPECIFIED **)    -- h is have value (ibatis log have log ,but sharding statement change to not specified)
   `
   sql-show:
   `
   INSERT INTO XXXX(    A,    b,    c,    d,    e,    f,    g, h) VALUES VALUES (?, ?, ?, ?, ?,  ifnull(?,now()), ?,?)      ::: [null, null, c, 1, e,2022-01-07T14:50:07.000+0800, 220107-010821375503616]
   `
   
   The table is no sharding table 
   When i remove ifnull ,That is OK 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org