Commit 5e0ea522 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Minor fixes in markup.

parent 8cf41db2
<Chapter Id="libpq"> <Chapter Id="libpq-chapter">
<Title><FileName>libpq</FileName></Title> <Title id="libpq"><FileName>libpq</FileName></Title>
<Para> <Para>
...@@ -1614,7 +1614,6 @@ main() ...@@ -1614,7 +1614,6 @@ main()
exit_nicely(conn); exit_nicely(conn);
} }
PQclear(res); PQclear(res);
res = PQexec(conn, "FETCH ALL in mycursor"); res = PQexec(conn, "FETCH ALL in mycursor");
if (PQresultStatus(res) != PGRES_TUPLES_OK) if (PQresultStatus(res) != PGRES_TUPLES_OK)
{ {
...@@ -1636,7 +1635,6 @@ main() ...@@ -1636,7 +1635,6 @@ main()
printf("%-15s", PQgetvalue(res, i, j)); printf("%-15s", PQgetvalue(res, i, j));
printf("\n"); printf("\n");
} }
PQclear(res); PQclear(res);
/* close the cursor */ /* close the cursor */
......
...@@ -215,8 +215,8 @@ createdb: database creation failed on mydb. ...@@ -215,8 +215,8 @@ createdb: database creation failed on mydb.
<ItemizedList Mark="bullet" Spacing="compact"> <ItemizedList Mark="bullet" Spacing="compact">
<ListItem> <ListItem>
<Para> <Para>
running the <ProductName>Postgres</ProductName> terminal monitor programs (e.g. running the <ProductName>Postgres</ProductName> terminal monitor programs
<Application>psql</Application>) which allows you to interactively (e.g. <Application>psql</Application>) which allows you to interactively
enter, edit, and execute <Acronym>SQL</Acronym> commands. enter, edit, and execute <Acronym>SQL</Acronym> commands.
</Para> </Para>
</ListItem> </ListItem>
...@@ -226,12 +226,13 @@ running the <ProductName>Postgres</ProductName> terminal monitor programs (e ...@@ -226,12 +226,13 @@ running the <ProductName>Postgres</ProductName> terminal monitor programs (e
library. This allows you to submit <Acronym>SQL</Acronym> commands library. This allows you to submit <Acronym>SQL</Acronym> commands
from <Acronym>C</Acronym> and get answers and status messages back to from <Acronym>C</Acronym> and get answers and status messages back to
your program. This interface is discussed further your program. This interface is discussed further
in <XRef LinkEnd="PROGRAMMERS-GUIDE">. in <xref linkend="libpq" endterm="libpq">.
</Para> </Para>
</ListItem> </ListItem>
</ItemizedList> </ItemizedList>
You might want to start up <Application>psql</Application>, to try out the examples in this manual. You might want to start up <Application>psql</Application>,
to try out the examples in this manual.
It can be activated for the <Database>mydb</Database> It can be activated for the <Database>mydb</Database>
database by typing the command: database by typing the command:
<ProgramListing> <ProgramListing>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment