diff options
author | Joas Schilling <coding@schilljs.com> | 2023-06-01 07:55:37 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-08-23 09:08:08 +0200 |
commit | 5a1fcdb272d32c27f4167042faaf51b0287069bc (patch) | |
tree | b591541edf93081ad3d3279c62fd93b2912f8d7c /lib/public | |
parent | 26c734abe4a5a524870a4ec95064958635eea888 (diff) | |
download | nextcloud-server-5a1fcdb272d32c27f4167042faaf51b0287069bc.tar.gz nextcloud-server-5a1fcdb272d32c27f4167042faaf51b0287069bc.zip |
fix(dbal): Migrate to Doctrine\DBAL\ParameterTypes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/DB/QueryBuilder/IQueryBuilder.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php index 1f5c4307914..63fdfb65971 100644 --- a/lib/public/DB/QueryBuilder/IQueryBuilder.php +++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php @@ -28,6 +28,7 @@ namespace OCP\DB\QueryBuilder; use Doctrine\DBAL\Connection; +use Doctrine\DBAL\ParameterType; use OCP\DB\Exception; use OCP\DB\IResult; @@ -41,23 +42,23 @@ interface IQueryBuilder { /** * @since 9.0.0 */ - public const PARAM_NULL = \PDO::PARAM_NULL; + public const PARAM_NULL = ParameterType::NULL; /** * @since 9.0.0 */ - public const PARAM_BOOL = \PDO::PARAM_BOOL; + public const PARAM_BOOL = ParameterType::BOOLEAN; /** * @since 9.0.0 */ - public const PARAM_INT = \PDO::PARAM_INT; + public const PARAM_INT = ParameterType::INTEGER; /** * @since 9.0.0 */ - public const PARAM_STR = \PDO::PARAM_STR; + public const PARAM_STR = ParameterType::STRING; /** * @since 9.0.0 */ - public const PARAM_LOB = \PDO::PARAM_LOB; + public const PARAM_LOB = ParameterType::LARGE_OBJECT; /** * @since 9.0.0 */ |