mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
r7808 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7810 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4ad43d052d
commit
44f276f996
1 changed files with 5 additions and 5 deletions
|
|
@ -348,7 +348,7 @@
|
|||
$target_columns = array ($target_columns);
|
||||
}
|
||||
|
||||
$query = sprintf ("create %s index \"%s\" on \"%s%s\" (%s);", $is_unique?'unique':'', $index_name, $this->prefix, $table_name, '"'.implode('","',$target_columns).'"');
|
||||
$query = sprintf ("create %s index \"%s\" on \"%s%s\" (%s);", $is_unique?'unique':'', $this->prefix .$index_name, $this->prefix, $table_name, '"'.implode('","',$target_columns).'"');
|
||||
|
||||
$this->_query ($query);
|
||||
}
|
||||
|
|
@ -358,7 +358,7 @@
|
|||
**/
|
||||
function dropIndex ($table_name, $index_name, $is_unique = false)
|
||||
{
|
||||
$query = sprintf ("drop %s index \"%s\" on \"%s%s\"", $is_unique?'unique':'', $index_name, $this->prefix, $table_name);
|
||||
$query = sprintf ("drop %s index \"%s\" on \"%s%s\"", $is_unique?'unique':'', $this->prefix .$index_name, $this->prefix, $table_name);
|
||||
|
||||
$this->_query($query);
|
||||
}
|
||||
|
|
@ -368,7 +368,7 @@
|
|||
**/
|
||||
function isIndexExists ($table_name, $index_name)
|
||||
{
|
||||
$query = sprintf ("select \"index_name\" from \"db_index\" where ". "\"class_name\" = '%s%s' and \"index_name\" = '%s' ", $this->prefix, $table_name, $index_name);
|
||||
$query = sprintf ("select \"index_name\" from \"db_index\" where ". "\"class_name\" = '%s%s' and \"index_name\" = '%s' ", $this->prefix, $table_name, $this->prefix .$index_name);
|
||||
$result = $this->_query ($query);
|
||||
|
||||
if ($this->isError ()) return false;
|
||||
|
|
@ -501,7 +501,7 @@
|
|||
{
|
||||
foreach ($unique_list as $key => $val)
|
||||
{
|
||||
$query = sprintf ("create unique index \"%s\" on \"%s\" ". "(%s);", $key, $table_name, '"'.implode('","', $val).'"');
|
||||
$query = sprintf ("create unique index \"%s\" on \"%s\" ". "(%s);", $this->prefix .$key, $table_name, '"'.implode('","', $val).'"');
|
||||
$this->_query ($query);
|
||||
}
|
||||
}
|
||||
|
|
@ -510,7 +510,7 @@
|
|||
{
|
||||
foreach ($index_list as $key => $val)
|
||||
{
|
||||
$query = sprintf ("create index \"%s\" on \"%s\" (%s);", $key, $table_name, '"'.implode('","',$val).'"');
|
||||
$query = sprintf ("create index \"%s\" on \"%s\" (%s);", $this->prefix .$key, $table_name, '"'.implode('","',$val).'"');
|
||||
$this->_query ($query);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue