|
@@ -96,8 +96,9 @@ |
|
|
block discarded – undo |
|
96
|
96
|
public function execute() |
|
97
|
97
|
{ |
|
98
|
98
|
|
|
99
|
|
- if ( $this->queryStructure->getElement( ( QueryStructure::WHERE_TRIGGER ) ) && !count( $this->queryStructure->getElement( QueryStructure::WHERE ) ) ) |
|
100
|
|
- throw new QueryException( 'Where or Having clause is required for this statement!', QueryException::QUERY_ERROR_DELETE_NOT_FILTER ); |
|
|
99
|
+ if ( $this->queryStructure->getElement( ( QueryStructure::WHERE_TRIGGER ) ) && !count( $this->queryStructure->getElement( QueryStructure::WHERE ) ) ) { |
|
|
100
|
+ throw new QueryException( 'Where or Having clause is required for this statement!', QueryException::QUERY_ERROR_DELETE_NOT_FILTER ); |
|
|
101
|
+ } |
|
101
|
102
|
|
|
102
|
103
|
return DbService::getInstance()->query( $this->getSyntax(), $this->queryStructure->getElement( QueryStructure::BIND_PARAMS ) ); |
|
103
|
104
|
|
Please login to merge, or discard this patch.