summaryrefslogtreecommitdiffstats
path: root/src/Statements/SelectStatement.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Statements/SelectStatement.php')
-rw-r--r--src/Statements/SelectStatement.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Statements/SelectStatement.php b/src/Statements/SelectStatement.php
index 8cdee82..0c4c354 100644
--- a/src/Statements/SelectStatement.php
+++ b/src/Statements/SelectStatement.php
@@ -68,6 +68,20 @@ class SelectStatement extends Statement
);
/**
+ * The sections of this statement, in order.
+ *
+ * Used by the query builder to arrange the clauses.
+ *
+ * @var array
+ */
+ public static $SECTIONS = array(
+ 'SELECT' => 0, '%OPTIONS' => 1,'FROM' => 2, 'PARTITION' => 3,
+ 'WHERE' => 4, 'GROUP BY' => 5, 'HAVING' => 6, 'ORDER BY' => 7,
+ 'LIMIT' => 8, 'PROCEDURE' => 9, 'INTO' => 10, 'UNION' => 11,
+ 'JOIN' => 12, '%OPTIONS' => 13
+ );
+
+ /**
* Expressions that are being selected by this statement.
*
* @var FieldFragment[]