We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reproduce:
SQL
CREATE TABLE `tokens` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `token` VARCHAR(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `token_UNIQUE` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
PHP
<?php use Phalcon\Db\Adapter\Pdo\Mysql; $connection = new Mysql( [ 'host' => 'localhost', 'username' => 'root', 'password' => '', 'dbname' => 'test', 'charset' => 'utf8', ] ); $indexes = $connection->describeIndexes('tokens'); foreach ($indexes as $index) { var_dump($index->getType()); }
Actual
string(0) "" string(0) ""
Expected
string(7) "PRIMARY" string(6) "UNIQUE"
MySQL
mysql> SHOW INDEXES FROM `tokens`\G *************************** 1. row *************************** Table: tokens Non_unique: 0 Key_name: PRIMARY Seq_in_index: 1 Column_name: id Collation: A Cardinality: 0 Sub_part: NULL Packed: NULL Null: Index_type: BTREE Comment: Index_comment: *************************** 2. row *************************** Table: tokens Non_unique: 0 Key_name: token_UNIQUE Seq_in_index: 1 Column_name: token Collation: A Cardinality: 0 Sub_part: NULL Packed: NULL Null: Index_type: BTREE Comment: Index_comment: 2 rows in set (0.01 sec)
The text was updated successfully, but these errors were encountered:
refs phalcon/phalcon-devtools#518
Sorry, something went wrong.
Merge pull request #11039 from sergeyklay/sql/dialect/mysql/indexes
23de7e9
Fixed issue #11036
Fixed in #11039
Fixed issue phalcon#11036
aaf3f55
No branches or pull requests
How to reproduce:
SQL
PHP
Actual
Expected
MySQL
The text was updated successfully, but these errors were encountered: