diff --git a/src/Components/pgsql/src/Db/Drivers/PdoPgsql/Driver.php b/src/Components/pgsql/src/Db/Drivers/PdoPgsql/Driver.php index f7062efd84..8b57195a6d 100644 --- a/src/Components/pgsql/src/Db/Drivers/PdoPgsql/Driver.php +++ b/src/Components/pgsql/src/Db/Drivers/PdoPgsql/Driver.php @@ -20,8 +20,6 @@ class Driver extends PgsqlBase __construct as private tPdoDriverConstruct; } - public const OFFLINE_CODE_INDEX = 0; - public function __construct(array $option = []) { $option['username'] ??= 'postgres'; diff --git a/src/Components/pgsql/src/Db/Drivers/PdoPgsql/Statement.php b/src/Components/pgsql/src/Db/Drivers/PdoPgsql/Statement.php index 2b0f734239..ef3f2e3d9f 100644 --- a/src/Components/pgsql/src/Db/Drivers/PdoPgsql/Statement.php +++ b/src/Components/pgsql/src/Db/Drivers/PdoPgsql/Statement.php @@ -18,8 +18,6 @@ class Statement extends PgsqlBaseStatement implements IPgsqlStatement { use TPdoStatement; - public const OFFLINE_CODE_INDEX = 0; - /** * 更新最后插入ID. */ diff --git a/src/Db/Mysql/Drivers/PdoMysql/Driver.php b/src/Db/Mysql/Drivers/PdoMysql/Driver.php index d79a4554b3..3ae057ca4f 100644 --- a/src/Db/Mysql/Drivers/PdoMysql/Driver.php +++ b/src/Db/Mysql/Drivers/PdoMysql/Driver.php @@ -20,8 +20,6 @@ class Driver extends MysqlBase __construct as private tPdoDriverConstruct; } - public const OFFLINE_CODE_INDEX = 1; - public function __construct(array $option = []) { $option['username'] ??= 'root'; diff --git a/src/Db/Mysql/Drivers/PdoMysql/Statement.php b/src/Db/Mysql/Drivers/PdoMysql/Statement.php index b872c4d5e4..c25c6e42b5 100644 --- a/src/Db/Mysql/Drivers/PdoMysql/Statement.php +++ b/src/Db/Mysql/Drivers/PdoMysql/Statement.php @@ -16,6 +16,4 @@ class Statement extends MysqlBaseStatement implements IMysqlStatement { use TPdoStatement; - - public const OFFLINE_CODE_INDEX = 1; }