@@ 1625-1629 (lines=5) @@ | ||
1622 | } |
|
1623 | ||
1624 | // Change user if necessary |
|
1625 | if ($this->hasGrantOption() && $v[3] != $t->fields['relowner']) { |
|
1626 | $grantor = $v[3]; |
|
1627 | $this->clean($grantor); |
|
1628 | $sql .= "SET SESSION AUTHORIZATION '{$grantor}';\n"; |
|
1629 | } |
|
1630 | ||
1631 | // Output privileges with no GRANT OPTION |
|
1632 | $sql .= 'GRANT '.implode(', ', $nongrant)." ON TABLE \"{$t->fields['relname']}\" TO "; |
|
@@ 1665-1669 (lines=5) @@ | ||
1662 | } |
|
1663 | ||
1664 | // Change user if necessary |
|
1665 | if ($this->hasGrantOption() && $v[3] != $t->fields['relowner']) { |
|
1666 | $grantor = $v[3]; |
|
1667 | $this->clean($grantor); |
|
1668 | $sql .= "SET SESSION AUTHORIZATION '{$grantor}';\n"; |
|
1669 | } |
|
1670 | ||
1671 | $sql .= 'GRANT '.implode(', ', $v[4])." ON \"{$t->fields['relname']}\" TO "; |
|
1672 | switch ($v[0]) { |