Skip to content

Commit f919f7c

Browse files
committed
comments
1 parent 33e754d commit f919f7c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/ClickHouseFunctions.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ public function parseType(&$type_full, &$name = null, &$to_conv = null)
232232
* in this case expression used exactly as specified.
233233
* Example: 'Int16 DEFAULT 123+5'
234234
*
235-
* @param string $table table name
236-
* @param array $fields_arr keys=field names => field_type[ def]
235+
* @param string $table table name
236+
* @param array $fields_arr keys=field names => field_type[ def]
237237
* @param integer $if_exists If table exists: 2=drop old table, 1-do nothing, 0-ret error)
238238
* @return boolean|string
239239
*/
@@ -256,9 +256,9 @@ public function createTableQuick($table, $fields_arr, $if_exists = 0)
256256
*
257257
* If $if_not_exist not empty, "IF NOT EXISTS" will be included in request.
258258
*
259-
* @param string $table_name
260-
* @param array $fields_arr
261-
* @param integer|boolean $if_not_exist
259+
* @param string $table_name Table name for make sql-request
260+
* @param array $fields_arr Array of fields for table
261+
* @param integer|boolean $if_not_exist set true for adding "IF NOT EXISTS"
262262
* @return string
263263
* @throws \Exception
264264
*/
@@ -268,10 +268,8 @@ public function sqlTableQuick($table_name, $fields_arr, $if_not_exist = 1)
268268
throw new \Exception("Table must contain as least 1 field");
269269
}
270270

271-
// Parse fields array and check types
272271
$fields_arr = $this->parseFieldsArr($fields_arr);
273272

274-
// Search Date field
275273
foreach ($fields_arr as $field_name => $field_par) {
276274
if (empty($primary_field)) {
277275
$primary_field = $field_name;

0 commit comments

Comments
 (0)