()
| 832 | } |
| 833 | |
| 834 | func (pgConn *PgConn) unlock() { |
| 835 | switch pgConn.status { |
| 836 | case connStatusBusy: |
| 837 | pgConn.status = connStatusIdle |
| 838 | case connStatusClosed: |
| 839 | default: |
| 840 | panic("BUG: cannot unlock unlocked connection") // This should only be possible if there is a bug in this package. |
| 841 | } |
| 842 | } |
| 843 | |
| 844 | // ParameterStatus returns the value of a parameter reported by the server (e.g. |
| 845 | // server_version). Returns an empty string for unknown parameters. |
no outgoing calls
no test coverage detected