* Unpack MAKE_SQLSTATE code. Note that this returns a pointer to a * static buffer. */
| 3617 | * static buffer. |
| 3618 | */ |
| 3619 | char * |
| 3620 | unpack_sql_state(int sql_state) |
| 3621 | { |
| 3622 | static char buf[12]; |
| 3623 | int i; |
| 3624 | |
| 3625 | for (i = 0; i < 5; i++) |
| 3626 | { |
| 3627 | buf[i] = PGUNSIXBIT(sql_state); |
| 3628 | sql_state >>= 6; |
| 3629 | } |
| 3630 | |
| 3631 | buf[i] = '\0'; |
| 3632 | return buf; |
| 3633 | } |
| 3634 | |
| 3635 | #define WRITE_PIPE_CHUNK_TIMEOUT 1000 |
| 3636 |
no outgoing calls
no test coverage detected