Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-server
Commits
ec3d5b82
Commit
ec3d5b82
authored
Mar 18, 2020
by
François Agneray
Browse files
#43
=> done
parent
d918cec6
Pipeline
#2166
passed with stages
in 3 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Utils/Operator/OperatorFactory.php
View file @
ec3d5b82
...
...
@@ -26,13 +26,6 @@ use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
*/
class
OperatorFactory
implements
IOperatorFactory
{
private
$databasePlatform
;
public
function
setDatabasePlatform
(
AbstractPlatform
$databasePlatform
)
{
$this
->
databasePlatform
=
$databasePlatform
;
}
/**
* Make the right operator and send it back
* Parameters represent values sent by the user
...
...
@@ -133,9 +126,6 @@ class OperatorFactory implements IOperatorFactory
return
new
OperatorNotNull
(
$expr
,
$column
,
$columnType
);
case
'js'
:
if
(
!
(
$this
->
databasePlatform
instanceof
PostgreSQL94Platform
))
{
throw
OperatorException
::
operatorJsonNotSupported
();
}
if
(
$columnType
!==
'json'
)
{
throw
OperatorException
::
operatorJsonNeedColumnTypeJson
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment