1
1
-- 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 $
3
3
4
4
-- ODBC functions are described here:
5
5
-- <http://msdn.microsoft.com/library/en-us/odbc/htm/odbcscalar_functions.asp>
16
16
-- Built-in: ASCII, BIT_LENGTH, CHAR_LENGTH, CHARACTER_LENGTH, LTRIM,
17
17
-- OCTET_LENGTH, POSITION, REPEAT, RTRIM, SUBSTRING
18
18
-- Missing: DIFFERENCE, REPLACE, SOUNDEX, LENGTH (ODBC sense)
19
- -- Keyword problems: CHAR, LEFT, RIGHT
19
+ -- Keyword problems: CHAR
20
20
21
21
22
22
-- CHAR(code)
@@ -44,7 +44,7 @@ CREATE OR REPLACE FUNCTION lcase(text) RETURNS text AS '
44
44
45
45
46
46
-- 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 '
48
48
SELECT substring($1 for $2);
49
49
' LANGUAGE SQL;
50
50
@@ -59,7 +59,7 @@ CREATE OR REPLACE FUNCTION locate(text, text, integer) RETURNS integer AS '
59
59
60
60
61
61
-- 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 '
63
63
SELECT substring($1 from char_length($1) - $2 + 1);
64
64
' LANGUAGE SQL;
65
65
0 commit comments