V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
zealinux
V2EX  ›  程序员

sharding-proxy docker 中的 now() 与原数据库返回格式不一致,求帮忙

  •  
  •   zealinux · Mar 1, 2021 · 1092 views
    This topic created in 1896 days ago, the information mentioned may be changed or developed.

    sharding-proxy 中的 now()返回: 2021-03-01T15:54:16

    而目标数据库直接连连返回(也是希望是这样的): 2021-03-01 15:54:16

    导致应用一直报错:

    Caused by: com.mysql.cj.exceptions.DataReadException: Invalid format for type 2020-12-08T09:50:01. Value 'TIMESTAMP'
    

    现在找不到选项来去掉日志中的T字符,也不知道搜索什么关键词。 求帮忙

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1654 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:21 · PVG 00:21 · LAX 09:21 · JFK 12:21
    ♥ Do have faith in what you're doing.