Junjunya
V2EX  ›  PHP

为什么 PDO::ATTR_EMULATE_PREPARES 设置成 true,会导致查询出整型数据变成字符串类型

  •  
  •   Junjunya · Aug 28, 2019 · 3928 views
    This topic created in 2480 days ago, the information mentioned may be changed or developed.

    RT 网上文章大多都是在说明 ATTR_EMULATE_PREPARES 的作用。
    也有一部分是说设置成false 后可以解决查询出整型数据变成字符串类型的问题

    但是没找到文章解释为什么会出现这种情况,想知道为什么会导致查询出整型数据变成字符串类型?

    如果关闭 本地模拟预处理 会出现什么问题?

    1 replies    2019-08-29 11:41:51 +08:00
    Junjunya
        1
    Junjunya  
    OP
       Aug 29, 2019
    手动置顶一下,有大佬可以回答这个问题嘛
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2662 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:54 · PVG 18:54 · LAX 03:54 · JFK 06:54
    ♥ Do have faith in what you're doing.