Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
d5873b63
Commit
d5873b63
authored
13 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Document that PQexec() can handle a NULL res pointer just fine.
Backpatch to 9.1. Mark Hills
parent
2e022807
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/libpq.sgml
+5
-3
5 additions, 3 deletions
doc/src/sgml/libpq.sgml
with
5 additions
and
3 deletions
doc/src/sgml/libpq.sgml
+
5
−
3
View file @
d5873b63
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
return a non-null object pointer, unless perhaps there is too
return a non-null object pointer, unless perhaps there is too
little memory even to allocate the <structname>PGconn</> object.
little memory even to allocate the <structname>PGconn</> object.
The <function>PQstatus</> function should be called to check
The <function>PQstatus</> function should be called to check
whether a connection was successfully made
before queries are sent
the return value for a successful connection
before queries are sent
via the connection object.
via the connection object.
<warning>
<warning>
...
@@ -1754,8 +1754,10 @@ PGresult *PQexec(PGconn *conn, const char *command);
...
@@ -1754,8 +1754,10 @@ PGresult *PQexec(PGconn *conn, const char *command);
Returns a <structname>PGresult</structname> pointer or possibly a null
Returns a <structname>PGresult</structname> pointer or possibly a null
pointer. A non-null pointer will generally be returned except in
pointer. A non-null pointer will generally be returned except in
out-of-memory conditions or serious errors such as inability to send
out-of-memory conditions or serious errors such as inability to send
the command to the server. If a null pointer is returned, it should
the command to the server. The <function>PQresultStatus</> function
be treated like a <symbol>PGRES_FATAL_ERROR</symbol> result. Use
should be called to check the return value for any errors (including
the value of a null pointer, in which case it will return
<symbol>PGRES_FATAL_ERROR</symbol>). Use
<function>PQerrorMessage</function> to get more information about such
<function>PQerrorMessage</function> to get more information about such
errors.
errors.
</para>
</para>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment