summaryrefslogtreecommitdiffstats
path: root/src/Components/Limit.php
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-10-03 15:59:56 +0200
committerGitHub <noreply@github.com>2016-10-03 15:59:56 +0200
commit29a9dc198900877e63df6e0b33e884b6c3507b27 (patch)
tree1b8fe78e2906b70a3cd33abe5f57810a680b04ad /src/Components/Limit.php
parent1b72bd39ba90580579b86b5f3bbd8f6815f10096 (diff)
parent98679cb7ed977d2b0d6cfa4b27c7964d41dc5c44 (diff)
downloadsql-parser-29a9dc198900877e63df6e0b33e884b6c3507b27.zip
sql-parser-29a9dc198900877e63df6e0b33e884b6c3507b27.tar.gz
sql-parser-29a9dc198900877e63df6e0b33e884b6c3507b27.tar.bz2
Merge pull request #87 from devenbansod/delete_statement
Implement parsing and building for Delete Statement
Diffstat (limited to 'src/Components/Limit.php')
-rw-r--r--src/Components/Limit.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Components/Limit.php b/src/Components/Limit.php
index da4f7f7..13a1127 100644
--- a/src/Components/Limit.php
+++ b/src/Components/Limit.php
@@ -126,10 +126,6 @@ class Limit extends Component
*/
public static function build($component, array $options = array())
{
- if (empty($component->offset)) {
- return (string) $component->rowCount;
- } else {
- return $component->offset . ', ' . $component->rowCount;
- }
+ return $component->offset . ', ' . $component->rowCount;
}
}