mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 06:09:55 +09:00
#19690852 Update serial creation statement to use cache.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8317 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c5e7a56a78
commit
3ac4063af6
1 changed files with 2 additions and 5 deletions
|
|
@ -283,7 +283,7 @@
|
|||
}
|
||||
|
||||
// create sequence
|
||||
$query = sprintf('create serial "%ssequence" start with %s increment by 1 minvalue 1 maxvalue 10000000000000000000000000000000000000 nocycle;', $this->prefix, $start);
|
||||
$query = sprintf('create serial "%ssequence" start with %s increment by 1 nominvalue nomaxvalue nocycle cache 3;', $this->prefix, $start);
|
||||
$result = $this->_query($query);
|
||||
if ($result) cubrid_close_request($result);
|
||||
}
|
||||
|
|
@ -464,10 +464,7 @@
|
|||
|
||||
// If the table name is sequence, it creates a serial
|
||||
if ($table_name == 'sequence') {
|
||||
$query = sprintf ('create serial "%s" start with 1 increment by 1'.
|
||||
' minvalue 1 '.
|
||||
'maxvalue 10000000000000000000000000000000000000'. ' nocycle;', $this->prefix.$table_name);
|
||||
|
||||
$query = sprintf('create serial "%ssequence" start with 1 increment by 1 nominvalue nomaxvalue nocycle cache 3;', $this->prefix);
|
||||
$result = $this->_query($query);
|
||||
if($result) cubrid_close_request($result);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue