Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita20bc9c

Browse files
committed
Use proper SGML doc entities rather than angle-brackets.
Marco Nenciarini
1 parentaff97b1 commita20bc9c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

‎doc/src/sgml/array.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ UPDATE sal_emp SET pay_by_quarter = ARRAY[25000,25000,27000,27000]
369369
<programlisting>
370370
UPDATE sal_emp SET pay_by_quarter[4] = 15000
371371
WHERE name = 'Bill';
372-
</programListing>
372+
</programlisting>
373373

374374
or updated in a slice:
375375

‎doc/src/sgml/ecpg.sgml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4154,7 +4154,7 @@ switch (v.sqltype)
41544154
{
41554155
case ECPGt_char:
41564156
memset(&amp;var_buf, 0, sizeof(var_buf));
4157-
memcpy(&amp;var_buf, sqldata, (sizeof(var_buf)<= sqllen ? sizeof(var_buf) - 1 : sqllen));
4157+
memcpy(&amp;var_buf, sqldata, (sizeof(var_buf)&lt;= sqllen ? sizeof(var_buf) - 1 : sqllen));
41584158
break;
41594159

41604160
case ECPGt_int: /* integer */
@@ -4390,7 +4390,7 @@ main(void)
43904390

43914391
case ECPGt_char:
43924392
memset(&amp;var_buf, 0, sizeof(var_buf));
4393-
memcpy(&amp;var_buf, sqldata, (sizeof(var_buf)<= sqllen ? sizeof(var_buf)-1 : sqllen));
4393+
memcpy(&amp;var_buf, sqldata, (sizeof(var_buf)&lt;= sqllen ? sizeof(var_buf)-1 : sqllen));
43944394
break;
43954395

43964396
case ECPGt_int: /* integer */
@@ -5871,39 +5871,39 @@ main(void)
58715871

58725872
/* create */
58735873
loid = lo_create(conn, 0);
5874-
if (loid< 0)
5874+
if (loid&lt; 0)
58755875
printf("lo_create() failed: %s", PQerrorMessage(conn));
58765876

58775877
printf("loid = %d\n", loid);
58785878

58795879
/* write test */
58805880
fd = lo_open(conn, loid, INV_READ|INV_WRITE);
5881-
if (fd< 0)
5881+
if (fd&lt; 0)
58825882
printf("lo_open() failed: %s", PQerrorMessage(conn));
58835883

58845884
printf("fd = %d\n", fd);
58855885

58865886
rc = lo_write(conn, fd, buf, buflen);
5887-
if (rc< 0)
5887+
if (rc&lt; 0)
58885888
printf("lo_write() failed\n");
58895889

58905890
rc = lo_close(conn, fd);
5891-
if (rc< 0)
5891+
if (rc&lt; 0)
58925892
printf("lo_close() failed: %s", PQerrorMessage(conn));
58935893

58945894
/* read test */
58955895
fd = lo_open(conn, loid, INV_READ);
5896-
if (fd< 0)
5896+
if (fd&lt; 0)
58975897
printf("lo_open() failed: %s", PQerrorMessage(conn));
58985898

58995899
printf("fd = %d\n", fd);
59005900

59015901
rc = lo_read(conn, fd, buf2, buflen);
5902-
if (rc< 0)
5902+
if (rc&lt; 0)
59035903
printf("lo_read() failed\n");
59045904

59055905
rc = lo_close(conn, fd);
5906-
if (rc< 0)
5906+
if (rc&lt; 0)
59075907
printf("lo_close() failed: %s", PQerrorMessage(conn));
59085908

59095909
/* check */
@@ -5912,7 +5912,7 @@ main(void)
59125912

59135913
/* cleanup */
59145914
rc = lo_unlink(conn, loid);
5915-
if (rc< 0)
5915+
if (rc&lt; 0)
59165916
printf("lo_unlink() failed: %s", PQerrorMessage(conn));
59175917

59185918
EXEC SQL COMMIT;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp