|
@@ -137,18 +137,18 @@ |
|
|
block discarded – undo |
|
137
|
137
|
* Metadata from the data stored |
|
138
|
138
|
*/ |
|
139
|
139
|
$query = sprintf('SELECT COUNT(*) AS COUNT FROM (SELECT %s FROM %s.%s GROUP BY %s) distinctvalues', |
|
140
|
|
- $this->connection->quoteIdentifier($this->name), |
|
141
|
|
- $this->connection->quoteIdentifier($this->database), |
|
142
|
|
- $this->connection->quoteIdentifier($this->table), |
|
143
|
|
- $this->connection->quoteIdentifier($this->name)); |
|
|
140
|
+ $this->connection->quoteIdentifier($this->name), |
|
|
141
|
+ $this->connection->quoteIdentifier($this->database), |
|
|
142
|
+ $this->connection->quoteIdentifier($this->table), |
|
|
143
|
+ $this->connection->quoteIdentifier($this->name)); |
|
144
|
144
|
$this->distinctValues = $this->connection->query($query)->fetchAssoc(false)['COUNT']; |
|
145
|
145
|
|
|
146
|
146
|
$query = sprintf('SELECT MIN(%s) AS ROWMIN, MAX(%s) AS ROWMAX FROM %s.%s WHERE %s IS NOT NULL', |
|
147
|
|
- $this->connection->quoteIdentifier($this->name), |
|
148
|
|
- $this->connection->quoteIdentifier($this->name), |
|
149
|
|
- $this->connection->quoteIdentifier($this->database), |
|
150
|
|
- $this->connection->quoteIdentifier($this->table), |
|
151
|
|
- $this->connection->quoteIdentifier($this->name)); |
|
|
147
|
+ $this->connection->quoteIdentifier($this->name), |
|
|
148
|
+ $this->connection->quoteIdentifier($this->name), |
|
|
149
|
+ $this->connection->quoteIdentifier($this->database), |
|
|
150
|
+ $this->connection->quoteIdentifier($this->table), |
|
|
151
|
+ $this->connection->quoteIdentifier($this->name)); |
|
152
|
152
|
$data = $this->connection->query($query)->fetchAssoc(false); |
|
153
|
153
|
$this->maxValue = $data['ROWMAX']; |
|
154
|
154
|
$this->minValue = $data['ROWMIN']; |