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

Commit439fb6c

Browse files
author
Thomas G. Lockhart
committed
Include text_substr() function and use instead of oracle_compat equivalent.
1 parentfcabd07 commit439fb6c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/include/catalog/pg_proc.h‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: pg_proc.h,v 1.41 1997/12/23 19:29:15 thomas Exp $
9+
* $Id: pg_proc.h,v 1.42 1998/01/01 05:47:11 thomas Exp $
1010
*
1111
* NOTES
1212
* The script catalog/genbki.sh reads this file and generates .bki
@@ -1917,6 +1917,9 @@ DESCR("convert");
19171917
DATA(insertOID=1480 (circle_boxPGUID11ftf1f603"718"100010foobar ));
19181918
DESCR("convert");
19191919

1920+
DATA(insertOID=1481 (text_substrPGUID11ftf3f25"25 23 23"10000100foobar ));
1921+
DESCR("return portion of string");
1922+
19201923
DATA(insertOID=1530 (pointPGUID14ftf2f600"601 601"10000100"select lseg_interpt($1, $2)"- ));
19211924
DESCR("convert");
19221925
DATA(insertOID=1531 (pointPGUID14ftf1f600"718"10000100"select circle_center($1)"- ));
@@ -2021,7 +2024,7 @@ DATA(insert OID = 875 ( ltrim PGUID 11 f t f 2 f 25 "25 25" 100 0 0 100 f
20212024
DESCR("left-pad string to length");
20222025
DATA(insertOID=876 (rtrimPGUID11ftf2f25"25 25"10000100foobar ));
20232026
DESCR("right-pad string to length");
2024-
DATA(insertOID=877 (substrPGUID11ftf3f25"25 23 23"10000100foobar ));
2027+
DATA(insertOID=877 (substrPGUID14ftf3f25"25 23 23"10000100"select text_substr($1, $2, $3)"- ));
20252028
DESCR("return portion of string");
20262029
DATA(insertOID=878 (translatePGUID11ftf3f25"25 18 18"10000100foobar ));
20272030
DESCR("modify string by substring replacement");
@@ -2033,7 +2036,7 @@ DATA(insert OID = 881 ( ltrim PGUID 14 f t f 1 f 25 "25" 100 0 0 100 "sel
20332036
DESCR("remove initial characters from string");
20342037
DATA(insertOID=882 (rtrimPGUID14ftf1f25"25"10000100"select rtrim($1, \' \')"- ));
20352038
DESCR("remove trailing characters from string");
2036-
DATA(insertOID=883 (substrPGUID14ftf2f25"25 23"10000100"select substr($1, $2,10000)"- ));
2039+
DATA(insertOID=883 (substrPGUID14ftf2f25"25 23"10000100"select substr($1, $2,-1)"- ));
20372040
DESCR("return portion of string");
20382041
DATA(insertOID=884 (btrimPGUID11ftf2f25"25 25"10000100foobar ));
20392042
DESCR("trim both ends of string");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp