-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6624c39
commit b68e569
Showing
28 changed files
with
31 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,8 @@ | |
use Doctrine\ORM\Query\Lexer; | ||
|
||
/** | ||
* "COLLATE" | ||
* override the default collation | ||
* More info: | ||
* https://dev.mysql.com/doc/refman/5.7/en/charset-collate.html | ||
* | ||
* @category DoctrineExtensions | ||
* @author Peter Tanath <[email protected]> | ||
* @license MIT License | ||
* @link https://dev.mysql.com/doc/refman/en/charset-collate.html | ||
* @author Peter Tanath <[email protected]> | ||
*/ | ||
class Collate extends FunctionNode | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ | |
use Doctrine\ORM\Query\QueryException; | ||
|
||
/** | ||
* Class DateSub | ||
* | ||
* @author Vas N <[email protected]> | ||
*/ | ||
class DateSub extends DateAdd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,6 @@ | |
use Doctrine\ORM\Query\SqlWalker; | ||
|
||
/** | ||
* Class Greatest | ||
* | ||
* @author Vas N <[email protected]> | ||
* @author Guven Atbakan <[email protected]> | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,6 @@ | |
use Doctrine\ORM\Query\Parser; | ||
use Doctrine\ORM\Query\SqlWalker; | ||
|
||
/** | ||
* Class Instr | ||
* @author Jan H <[email protected]> | ||
*/ | ||
class Instr extends FunctionNode | ||
{ | ||
public $originalString = null; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,6 @@ | |
use Doctrine\ORM\Query\SqlWalker; | ||
|
||
/** | ||
* Class Least | ||
* | ||
* @author Vas N <[email protected]> | ||
*/ | ||
class Least extends FunctionNode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,24 @@ | ||
<?php | ||
|
||
/** | ||
* DoctrineExtensions Mysql Function Pack | ||
* LICENSE | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so I can send you a copy immediately. | ||
*/ | ||
|
||
namespace DoctrineExtensions\Query\Mysql; | ||
|
||
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | ||
use Doctrine\ORM\Query\Lexer; | ||
|
||
/** | ||
* "SEC_TO_TIME" "(" SimpleArithmeticExpression ")". | ||
* Modified from DoctrineExtensions\Query\Mysql\TimeToSec | ||
* More info: | ||
* https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html | ||
* | ||
* @category DoctrineExtensions | ||
* @author Clemens Bastian <[email protected]> | ||
* @license MIT License | ||
* @example SELECT SEC_TO_TIME(2378); | ||
* @link https://dev.mysql.com/doc/refman/en/date-and-time-functions.html#function_sec-to-time | ||
* @author Clemens Bastian <[email protected]> | ||
*/ | ||
class SecToTime extends FunctionNode | ||
{ | ||
public $time; | ||
|
||
/** | ||
* @override | ||
*/ | ||
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) | ||
{ | ||
return 'SEC_TO_TIME('.$sqlWalker->walkArithmeticPrimary($this->time).')'; | ||
} | ||
|
||
/** | ||
* @override | ||
*/ | ||
public function parse(\Doctrine\ORM\Query\Parser $parser) | ||
{ | ||
$parser->match(Lexer::T_IDENTIFIER); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,6 @@ | |
use Doctrine\ORM\Query\Parser; | ||
use Doctrine\ORM\Query\SqlWalker; | ||
|
||
/** | ||
* Class SubstringIndex | ||
* @author Vas N <[email protected]> | ||
*/ | ||
class SubstringIndex extends FunctionNode | ||
{ | ||
public $string = null; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
use Doctrine\ORM\Query\Lexer; | ||
|
||
/** | ||
* @author Steve Lacey <steve@stevelacey.net> | ||
* @author Steve Lacey <steve@steve.ly> | ||
* @author James Rohacik <[email protected]> | ||
*/ | ||
class Time extends FunctionNode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,24 @@ | ||
<?php | ||
|
||
/** | ||
* DoctrineExtensions Mysql Function Pack | ||
* LICENSE | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so I can send you a copy immediately. | ||
*/ | ||
|
||
namespace DoctrineExtensions\Query\Mysql; | ||
|
||
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | ||
use Doctrine\ORM\Query\Lexer; | ||
|
||
/** | ||
* "TIME_TO_SEC" "(" SimpleArithmeticExpression ")". | ||
* Modified from DoctrineExtensions\Query\Mysql\Hour | ||
* More info: | ||
* https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html | ||
* | ||
* @category DoctrineExtensions | ||
* @author Pawel Stasicki <[email protected]> | ||
* @license MIT License | ||
* @example SELECT TIME_TO_SEC('22:23:00'); | ||
* @link https://dev.mysql.com/doc/refman/en/date-and-time-functions.html#function_time-to-sec | ||
* @author Pawel Stasicki <[email protected]> | ||
*/ | ||
class TimeToSec extends FunctionNode | ||
{ | ||
public $time; | ||
|
||
/** | ||
* @override | ||
*/ | ||
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) | ||
{ | ||
return 'TIME_TO_SEC('.$sqlWalker->walkArithmeticPrimary($this->time).')'; | ||
} | ||
|
||
/** | ||
* @override | ||
*/ | ||
public function parse(\Doctrine\ORM\Query\Parser $parser) | ||
{ | ||
$parser->match(Lexer::T_IDENTIFIER); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
<?php | ||
|
||
/* | ||
* DoctrineExtensions Mysql Function Pack | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so I can send you a copy immediately. | ||
*/ | ||
|
||
namespace DoctrineExtensions\Query\Mysql; | ||
|
||
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | ||
|
@@ -21,9 +9,6 @@ class YearMonth extends FunctionNode | |
{ | ||
public $date; | ||
|
||
/** | ||
* @override | ||
*/ | ||
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) | ||
{ | ||
return sprintf( | ||
|
@@ -32,9 +17,6 @@ public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) | |
); | ||
} | ||
|
||
/** | ||
* @override | ||
*/ | ||
public function parse(\Doctrine\ORM\Query\Parser $parser) | ||
{ | ||
$parser->match(Lexer::T_IDENTIFIER); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,6 @@ | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | ||
use Doctrine\ORM\Query\Lexer; | ||
|
||
/** | ||
* @author Steve Lacey <[email protected]> | ||
*/ | ||
class Date extends FunctionNode | ||
{ | ||
public $date; | ||
|
Oops, something went wrong.