• 请不要在回答技术问题时复制粘贴 AI 生成的内容
zealinux
V2EX  ›  程序员

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

  •  
  •   zealinux · Mar 1, 2021 · 1136 views
    This topic created in 1917 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   ·   2963 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:19 · PVG 22:19 · LAX 07:19 · JFK 10:19
    ♥ Do have faith in what you're doing.