Skip to content
Snippets Groups Projects
Commit ef2821d0 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart
Browse files

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

 with case-insensitive SQL parser.
parent fad56c52
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -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) ...@@ -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) ...@@ -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) ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment