tp5 No function matches the given name and argument types. You might need to add explicit type cast

tp5连接pgsql数据库 报错

第一个错误 Array and string offset access syntax with curly braces is deprecated

修改一处代码

文件所在:thinkphp\library\think\db\Query.php

// 按照字段的首字母的值分表
$seq = (ord($value{0}) % $rule['num']) + 1;


改为下面的
$seq = (ord($value[0]) % $rule['num']) + 1;

改过后继续报错 继续解决: 

 No function matches the given name and argument types. You might need to add explicit type casts.或者没有匹配指定名称和参数类型的函数. 您也许需要增加明确的类型转换问题

这种问题 我之前遇到过 在次遇到还是不会 我之前文档就可以完美解决这个问题

链接:tp5支持pgsql数据库_qq5201314wx的博客-CSDN博客

你可能感兴趣的:(pgsql+php,thinkphp,pgsql,php)