Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change method `public unsigned` to `protected _unsigned`

  • Loading branch information...
commit f817beb8b6576784111d266e64d0cf42df6f7852 1 parent 1313b81
imsamurai authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 lib/Cake/Model/Datasource/Database/Mysql.php
View
22 lib/Cake/Model/Datasource/Database/Mysql.php
@@ -350,7 +350,7 @@ public function describe($model) {
'length' => $this->length($column->Type)
);
if (in_array($fields[$column->Field]['type'], $this->fieldParameters['unsigned']['types'], true)) {
- $fields[$column->Field]['unsigned'] = $this->unsigned($column->Type);
+ $fields[$column->Field]['unsigned'] = $this->_unsigned($column->Type);
}
if (!empty($column->Key) && isset($this->index[$column->Key])) {
$fields[$column->Field]['key'] = $this->index[$column->Key];
@@ -786,16 +786,6 @@ public function column($real) {
}
/**
- * Check if column type is unsigned
- *
- * @param string $real Real database-layer column type (i.e. "varchar(255)")
- * @return bool True if column is unsigned, false otherwise
- */
- public function unsigned($real) {
- return strpos(strtolower($real), 'unsigned') !== false;
- }
-
-/**
* Gets the schema name
*
* @return string The schema name
@@ -813,4 +803,14 @@ public function nestedTransactionSupported() {
return $this->useNestedTransactions && version_compare($this->getVersion(), '4.1', '>=');
}
+/**
+ * Check if column type is unsigned
+ *
+ * @param string $real Real database-layer column type (i.e. "varchar(255)")
+ * @return bool True if column is unsigned, false otherwise
+ */
+ protected function _unsigned($real) {
+ return strpos(strtolower($real), 'unsigned') !== false;
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.