From a20bc9c8666ad81ff3fe26cfab2efd42d6df7f34 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 2 Jun 2011 19:32:41 -0400 Subject: [PATCH] Use proper SGML doc entities rather than angle-brackets. Marco Nenciarini --- doc/src/sgml/array.sgml | 2 +- doc/src/sgml/ecpg.sgml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/src/sgml/array.sgml b/doc/src/sgml/array.sgml index bb318c5fc5..3508ba3e3c 100644 --- a/doc/src/sgml/array.sgml +++ b/doc/src/sgml/array.sgml @@ -369,7 +369,7 @@ UPDATE sal_emp SET pay_by_quarter = ARRAY[25000,25000,27000,27000] UPDATE sal_emp SET pay_by_quarter[4] = 15000 WHERE name = 'Bill'; - + or updated in a slice: diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml index 9c6ca4c519..a8ffde5150 100644 --- a/doc/src/sgml/ecpg.sgml +++ b/doc/src/sgml/ecpg.sgml @@ -4154,7 +4154,7 @@ switch (v.sqltype) { case ECPGt_char: memset(&var_buf, 0, sizeof(var_buf)); - memcpy(&var_buf, sqldata, (sizeof(var_buf) <= sqllen ? sizeof(var_buf) - 1 : sqllen)); + memcpy(&var_buf, sqldata, (sizeof(var_buf) <= sqllen ? sizeof(var_buf) - 1 : sqllen)); break; case ECPGt_int: /* integer */ @@ -4390,7 +4390,7 @@ main(void) case ECPGt_char: memset(&var_buf, 0, sizeof(var_buf)); - memcpy(&var_buf, sqldata, (sizeof(var_buf) <= sqllen ? sizeof(var_buf)-1 : sqllen)); + memcpy(&var_buf, sqldata, (sizeof(var_buf) <= sqllen ? sizeof(var_buf)-1 : sqllen)); break; case ECPGt_int: /* integer */ @@ -5871,39 +5871,39 @@ main(void) /* create */ loid = lo_create(conn, 0); - if (loid < 0) + if (loid < 0) printf("lo_create() failed: %s", PQerrorMessage(conn)); printf("loid = %d\n", loid); /* write test */ fd = lo_open(conn, loid, INV_READ|INV_WRITE); - if (fd < 0) + if (fd < 0) printf("lo_open() failed: %s", PQerrorMessage(conn)); printf("fd = %d\n", fd); rc = lo_write(conn, fd, buf, buflen); - if (rc < 0) + if (rc < 0) printf("lo_write() failed\n"); rc = lo_close(conn, fd); - if (rc < 0) + if (rc < 0) printf("lo_close() failed: %s", PQerrorMessage(conn)); /* read test */ fd = lo_open(conn, loid, INV_READ); - if (fd < 0) + if (fd < 0) printf("lo_open() failed: %s", PQerrorMessage(conn)); printf("fd = %d\n", fd); rc = lo_read(conn, fd, buf2, buflen); - if (rc < 0) + if (rc < 0) printf("lo_read() failed\n"); rc = lo_close(conn, fd); - if (rc < 0) + if (rc < 0) printf("lo_close() failed: %s", PQerrorMessage(conn)); /* check */ @@ -5912,7 +5912,7 @@ main(void) /* cleanup */ rc = lo_unlink(conn, loid); - if (rc < 0) + if (rc < 0) printf("lo_unlink() failed: %s", PQerrorMessage(conn)); EXEC SQL COMMIT;