Change LOread() and LOwrite() to loread() and lowrite() to allow use

with case-insensitive SQL parser.
This commit is contained in:
Thomas G. Lockhart 1997-05-06 07:19:04 +00:00
parent fad56c5211
commit ef2821d0d6

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.6 1996/12/28 02:13:05 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.7 1997/05/06 07:19:04 thomas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -474,8 +474,8 @@ static int lo_initialize(PGconn *conn)
or proname = 'lo_unlink' \ or proname = 'lo_unlink' \
or proname = 'lo_lseek' \ or proname = 'lo_lseek' \
or proname = 'lo_tell' \ or proname = 'lo_tell' \
or proname = 'LOread' \ or proname = 'loread' \
or proname = 'LOwrite'"); or proname = 'lowrite'");
if (res == (PGresult *)NULL) { if (res == (PGresult *)NULL) {
free(lobjfuncs); free(lobjfuncs);
return -1; return -1;
@ -514,10 +514,10 @@ static int lo_initialize(PGconn *conn)
if(!strcmp(fname, "lo_tell")) { if(!strcmp(fname, "lo_tell")) {
lobjfuncs->fn_lo_tell = foid; lobjfuncs->fn_lo_tell = foid;
} else } else
if(!strcmp(fname, "LOread")) { if(!strcmp(fname, "loread")) {
lobjfuncs->fn_lo_read = foid; lobjfuncs->fn_lo_read = foid;
} else } else
if(!strcmp(fname, "LOwrite")) { if(!strcmp(fname, "lowrite")) {
lobjfuncs->fn_lo_write = foid; lobjfuncs->fn_lo_write = foid;
} }
} }
@ -567,13 +567,13 @@ static int lo_initialize(PGconn *conn)
} }
if(lobjfuncs->fn_lo_read == 0) { if(lobjfuncs->fn_lo_read == 0) {
strcpy(conn->errorMessage, strcpy(conn->errorMessage,
"ERROR: Cannot determine OID for function LOread\n"); "ERROR: Cannot determine OID for function loread\n");
free(lobjfuncs); free(lobjfuncs);
return -1; return -1;
} }
if(lobjfuncs->fn_lo_write == 0) { if(lobjfuncs->fn_lo_write == 0) {
strcpy(conn->errorMessage, strcpy(conn->errorMessage,
"ERROR: Cannot determine OID for function LOwrite\n"); "ERROR: Cannot determine OID for function lowrite\n");
free(lobjfuncs); free(lobjfuncs);
return -1; return -1;
} }