Remove is_intval (it was a custom function)
parent
cc7e4dac88
commit
47e5c1ed5f
|
@ -3,8 +3,8 @@
|
||||||
/**
|
/**
|
||||||
* PDO/PostgreSQL wrapper with (mostly) DatabaseMySQL interface :)
|
* PDO/PostgreSQL wrapper with (mostly) DatabaseMySQL interface :)
|
||||||
* Select builder is inspired by MediaWiki's one.
|
* Select builder is inspired by MediaWiki's one.
|
||||||
* Version: 2018-12-18
|
* Version: 2019-06-03
|
||||||
* (c) Vitaliy Filippov, 2015-2018
|
* (c) Vitaliy Filippov, 2015-2019
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('MS_HASH'))
|
if (!defined('MS_HASH'))
|
||||||
|
@ -713,7 +713,7 @@ class DatabasePdoPgsql implements Database
|
||||||
}
|
}
|
||||||
foreach ($key as $i => &$k)
|
foreach ($key as $i => &$k)
|
||||||
{
|
{
|
||||||
if (is_intval($i))
|
if (is_int($i))
|
||||||
$k = "$k = EXCLUDED.$k";
|
$k = "$k = EXCLUDED.$k";
|
||||||
else
|
else
|
||||||
$k = "$i = ".str_replace('NEW.', 'EXCLUDED.', $k);
|
$k = "$i = ".str_replace('NEW.', 'EXCLUDED.', $k);
|
||||||
|
|
Loading…
Reference in New Issue