Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = 'SELECT * FROM "service__managers" WHERE "host" = 'localhost' LIMIT 1 ';
- //isFree() ensures that connection still exists and not busy
- $result = $this->isFree() && pg_send_query($this->connection, $query)
- ? pg_get_result($this->connection) }
- : null;
- if (is_resource($result)) {
- // sometimes returns ['?column?' => "1"]
- $row = pg_fetch_array($this->resource, 0, $type);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement