Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitad81c99

Browse files
committed
Update since left and right are no longer key words.
1 parent53f1173 commitad81c99

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 REPLACEFUNCTION"left"(text,integer) RETURNStextAS'
47+
CREATE OR REPLACEFUNCTIONleft(text,integer) RETURNStextAS'
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 REPLACEFUNCTION"right"(text,integer) RETURNStextAS'
62+
CREATE OR REPLACEFUNCTIONright(text,integer) RETURNStextAS'
6363
SELECT substring($1 from char_length($1) - $2 + 1);
6464
' LANGUAGE SQL;
6565

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp