| @@ 573-578 (lines=6) @@ | ||
| 570 | } |
|
| 571 | ||
| 572 | // PK and col name all convert to array |
|
| 573 | if (!is_array($m_pk)) { |
|
| 574 | if (is_string($m_pk)) |
|
| 575 | $m_pk = StrToArray($m_pk, ','); |
|
| 576 | else |
|
| 577 | $m_pk = array($m_pk); |
|
| 578 | } |
|
| 579 | if (!is_array($col_pk)) { |
|
| 580 | if (is_string($col_pk)) |
|
| 581 | $col_pk = StrToArray($col_pk, ','); |
|
| @@ 579-584 (lines=6) @@ | ||
| 576 | else |
|
| 577 | $m_pk = array($m_pk); |
|
| 578 | } |
|
| 579 | if (!is_array($col_pk)) { |
|
| 580 | if (is_string($col_pk)) |
|
| 581 | $col_pk = StrToArray($col_pk, ','); |
|
| 582 | else |
|
| 583 | $col_pk = array($col_pk); |
|
| 584 | } |
|
| 585 | ||
| 586 | // $col_pk need to be array same count with $m_pk |
|
| 587 | if (count($m_pk) != count($col_pk)) { |
|
| @@ 598-604 (lines=7) @@ | ||
| 595 | if ('*' == $col) |
|
| 596 | // Drop uppercased index |
|
| 597 | $col = array_values($this->GetMetaColumnName($s_tbl)); |
|
| 598 | if (!is_array($col)) { |
|
| 599 | if (is_string($col)) |
|
| 600 | // String split by ',', style 'col AS col_alias' allowed |
|
| 601 | $col = StrToArray($col, ','); |
|
| 602 | else |
|
| 603 | $col = array($col); |
|
| 604 | } |
|
| 605 | ||
| 606 | // $m_pk, $col, $col_pk all converted to array |
|
| 607 | ||