From ebdfac3bb115dfa6f77b851188de3c132f43d966 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 25 Sep 2000 12:58:47 +0000 Subject: the patch include: - rename ichar() to chr() (discussed with Tom) - add docs for oracle compatible routines: btrim() ascii() chr() repeat() - fix bug with timezone in to_char() - all to_char() variants return NULL instead textin("") if it's needful. The contrib/odbc is without changes and contains same routines as main tree ... because I not sure how plans are Thomas with this :-) Karel --------------------------------------------------------------------------- This effectively one line patch should fix the fact that foreign key definitions in create table were erroring if a primary key was defined. I was using the columns list to get the columns of the table for comparison, but it got reused as a temporary list inside the primary key stuff. Stephan Szabo --- doc/src/sgml/func.sgml | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 0306f7cf05..f7b2334f3d 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -356,10 +356,16 @@ - to_ascii(text [,name|int]) + ascii(text) + int + returns the decimal representation of the first character from text + ascii('x') + + + btrim(text,set) text - convert text from multibyte encoding to ASCII - to_ascii('Karel') + both (left and right) trim characters from text + btrim('xxxtrimxxx','x') char(text) @@ -374,6 +380,12 @@ char(varchar 'varchar string') + + chr(int) + text + returns the character having the binary equivalent to int + chr(65) + initcap(text) text first letter of each word to upper case @@ -392,10 +404,10 @@ ltrim('xxxxtrim','x') - textpos(text,text) + repeat(text,int) text - locate specified substring - position('high','ig') + repeat text by int + repeat('Pg', 4) rpad(text,int,text) @@ -427,12 +439,24 @@ convert varchar to text type text(varchar 'varchar string') + + textpos(text,text) + text + locate specified substring + position('high','ig') + + + to_ascii(text [,name|int]) + text + convert text from multibyte encoding to ASCII + to_ascii('Karel') + translate(text,from,to) text convert character in string translate('12345', '1', 'a') - + varchar(char) varchar -- cgit v1.2.1