Skip to content

Commit 9412321

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 parent a65dd52 commit 9412321

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
#ifndef BE_FSSTUBS_H
1414
#define BE_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+
#define LOread(f,l) loread(f,l)
22+
#define LOwrite(f,b) lowrite(f,b)
23+
1624
extern Oid lo_import(text *filename);
1725
extern int4 lo_export(Oid lobjId, text *filename);
1826

@@ -26,7 +34,7 @@ extern int lo_lseek(int fd, int offset, int whence);
2634
extern int lo_tell(int fd);
2735
extern int lo_unlink(Oid lobjId);
2836

29-
extern struct varlena *LOread(int fd, int len);
30-
extern int LOwrite(int fd, struct varlena *wbuf);
31-
37+
extern struct varlena *loread(int fd, int len);
38+
extern int lowrite(int fd, struct varlena *wbuf);
39+
3240
#endif /* BE_FSSTUBS_H */

0 commit comments

Comments
 (0)