@@ 627-637 (lines=11) @@ | ||
624 | * @param mixed $param |
|
625 | * @return string |
|
626 | */ |
|
627 | public function setInsert($param) |
|
628 | { |
|
629 | $this->paramPart['INSERT'] = $param; |
|
630 | ||
631 | $this->sqlPart['INSERT'] = 'INSERT INTO ' . $param; |
|
632 | ||
633 | // Retrieve table schema, so VALUES can determine how to quote |
|
634 | $this->db->getMetaColumn($param); |
|
635 | ||
636 | return $this->sqlPart['INSERT']; |
|
637 | } |
|
638 | ||
639 | ||
640 | /** |
|
@@ 720-730 (lines=11) @@ | ||
717 | * @param mixed $param |
|
718 | * @return string |
|
719 | */ |
|
720 | public function setUpdate($param) |
|
721 | { |
|
722 | $this->paramPart['UPDATE'] = $param; |
|
723 | ||
724 | $this->sqlPart['UPDATE'] = 'UPDATE ' . $param; |
|
725 | ||
726 | // Retrieve table schema, so SET can determine how to quote |
|
727 | $this->db->getMetaColumn($param); |
|
728 | ||
729 | return $this->sqlPart['UPDATE']; |
|
730 | } |
|
731 | ||
732 | ||
733 | /** |