summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2012-10-09 01:52:58 +0000
committerTom Lane2012-10-09 01:52:58 +0000
commitcd07b5a07f7c2322328c234824a1e11097145908 (patch)
tree620f10764d258b3c04a9876bdcd0d713bb3aa67b /doc/src
parent4f03cd85979538d62cfb1c30576d98bd4534a5be (diff)
Fix lo_import and lo_export to return useful error messages more often.
I found that these functions tend to return -1 while leaving an empty error message string in the PGconn, if they suffer some kind of I/O error on the file. The reason is that lo_close, which thinks it's executed a perfectly fine SQL command, clears the errorMessage. The minimum-change workaround is to reorder operations here so that we don't fill the errorMessage until after lo_close.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions