Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ad81c99

Browse files
committed
Update since left and right are no longer key words.
1 parent 53f1173 commit ad81c99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interfaces/odbc/odbc.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- PostgreSQL catalog extensions for ODBC compatibility
2-
-- $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/odbc.sql,v 1.3 2001/10/13 19:16:32 petere Exp $
2+
-- $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/odbc.sql,v 1.4 2001/12/02 11:36:04 petere Exp $
33

44
-- ODBC functions are described here:
55
-- <http://msdn.microsoft.com/library/en-us/odbc/htm/odbcscalar_functions.asp>
@@ -16,7 +16,7 @@
1616
-- Built-in: ASCII, BIT_LENGTH, CHAR_LENGTH, CHARACTER_LENGTH, LTRIM,
1717
-- OCTET_LENGTH, POSITION, REPEAT, RTRIM, SUBSTRING
1818
-- Missing: DIFFERENCE, REPLACE, SOUNDEX, LENGTH (ODBC sense)
19-
-- Keyword problems: CHAR, LEFT, RIGHT
19+
-- Keyword problems: CHAR
2020

2121

2222
-- CHAR(code)
@@ -44,7 +44,7 @@ CREATE OR REPLACE FUNCTION lcase(text) RETURNS text AS '
4444

4545

4646
-- LEFT(string, count)
47-
CREATE OR REPLACE FUNCTION "left"(text, integer) RETURNS text AS '
47+
CREATE OR REPLACE FUNCTION left(text, integer) RETURNS text AS '
4848
SELECT substring($1 for $2);
4949
' LANGUAGE SQL;
5050

@@ -59,7 +59,7 @@ CREATE OR REPLACE FUNCTION locate(text, text, integer) RETURNS integer AS '
5959

6060

6161
-- RIGHT(string, count)
62-
CREATE OR REPLACE FUNCTION "right"(text, integer) RETURNS text AS '
62+
CREATE OR REPLACE FUNCTION right(text, integer) RETURNS text AS '
6363
SELECT substring($1 from char_length($1) - $2 + 1);
6464
' LANGUAGE SQL;
6565

0 commit comments

Comments
 (0)