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>
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 ) RETURNStext AS '
47+ CREATE OR REPLACE FUNCTION left (text ,integer ) RETURNStext 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 ) RETURNStext AS '
62+ CREATE OR REPLACE FUNCTION right (text ,integer ) RETURNStext AS '
6363 SELECT substring($1 from char_length($1) - $2 + 1);
6464' LANGUAGE SQL;
6565