mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
add priority_hint to mysql
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9485 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc7477d4e3
commit
055b7e0d68
4 changed files with 30 additions and 9 deletions
|
|
@ -3,6 +3,7 @@
|
|||
class Query extends Object {
|
||||
var $queryID;
|
||||
var $action;
|
||||
var $priority;
|
||||
|
||||
var $columns;
|
||||
var $tables;
|
||||
|
|
@ -27,6 +28,7 @@
|
|||
, $limit = null){
|
||||
$this->queryID = $queryID;
|
||||
$this->action = $action;
|
||||
$this->priority = $priority;
|
||||
|
||||
if(!isset($tables)) return;
|
||||
$this->columns = $this->setColumns($columns);
|
||||
|
|
@ -48,6 +50,10 @@
|
|||
function setAction($action){
|
||||
$this->action = $action;
|
||||
}
|
||||
|
||||
function setPriority($priority){
|
||||
$this->priority = $priority;
|
||||
}
|
||||
|
||||
function setColumnList($columnList){
|
||||
$this->columnList = $columnList;
|
||||
|
|
@ -152,6 +158,10 @@
|
|||
function getAction(){
|
||||
return $this->action;
|
||||
}
|
||||
|
||||
function getPriority(){
|
||||
return $this->priority?'LOW_PRIORITY':'';
|
||||
}
|
||||
|
||||
function getSelectString($with_values = true){
|
||||
foreach($this->columns as $column){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue