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

Commit9412321

Browse files
author
Thomas G. Lockhart
committed
Rename LOread() and LOwrite() to be lower case to allow use
in case-insensitive SQL. Define LOread() and LOwrite() as macros to avoid having to update calls everywhere.
1 parenta65dd52 commit9412321

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

‎src/include/libpq/be-fsstubs.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,21 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: be-fsstubs.h,v 1.1 1996/08/28 07:22:56 scrappy Exp $
9+
* $Id: be-fsstubs.h,v 1.2 1997/05/06 07:14:34 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
1313
#ifndefBE_FSSTUBS_H
1414
#defineBE_FSSTUBS_H
1515

16+
/* Redefine names LOread() and LOwrite() to be lowercase to allow calling
17+
* using the new v6.1 case-insensitive SQL parser. Define macros to allow
18+
* the existing code to stay the same. - tgl 97/05/03
19+
*/
20+
21+
#defineLOread(f,l) loread(f,l)
22+
#defineLOwrite(f,b) lowrite(f,b)
23+
1624
externOidlo_import(text*filename);
1725
externint4lo_export(OidlobjId,text*filename);
1826

@@ -26,7 +34,7 @@ extern int lo_lseek(int fd, int offset, int whence);
2634
externintlo_tell(intfd);
2735
externintlo_unlink(OidlobjId);
2836

29-
externstructvarlena*LOread(intfd,intlen);
30-
externintLOwrite(intfd,structvarlena*wbuf);
31-
37+
externstructvarlena*loread(intfd,intlen);
38+
externintlowrite(intfd,structvarlena*wbuf);
39+
3240
#endif/* BE_FSSTUBS_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp