Changeset 20037 for branches/version-2_5-dev/data/class/SC_Query.php
- Timestamp:
- 2011/01/25 04:00:29 (15 years ago)
- File:
-
- 1 edited
-
branches/version-2_5-dev/data/class/SC_Query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Query.php
r19805 r20037 791 791 * @param string $name インデックス名 792 792 * @param array $definition フィールド名など 通常のフィールド指定時は、$definition=array('fields' => array('フィールド名' => array())); 793 * MySQLのtext型フィールドを指定する場合は $definition['length'] = 'text_field(NNN)' が必要 793 794 */ 794 795 function createIndex($table, $name, $definition) { 796 $definition = $this->dbFactory->sfGetCreateIndexDefinition($table, $name, $definition); 795 797 $objManager =& $this->conn->loadModule('Manager'); 796 798 return $objManager->createIndex($table, $name, $definition); … … 807 809 return $objManager->dropIndex($table, $name); 808 810 } 809 811 812 /** 813 * テーブルの詳細情報を取得する。 814 * 815 * @param string $table テーブル名 816 * @return array テーブル情報の配列 817 */ 818 function getTableInfo($table) { 819 $objManager =& $this->conn->loadModule('Reverse'); 820 return $objManager->tableInfo($table, NULL); 821 } 822 810 823 /** 811 824 * 値を適切にクォートする.
Note: See TracChangeset
for help on using the changeset viewer.
