Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > encoding proble...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3033 of 3177
Post > Topic >>

encoding problems

by cliff@[EMAIL PROTECTED] (Cliff Nieuwenhuis) Mar 11, 2008 at 10:10 AM

I'm not sure how to ask this question.  I have written a function, and with

PostgreSQL 8.0.13 I can do a "\df+" and see something like this under
Source 
Code:

	DECLARE
		result text;	
	BEGIN
		result := (SELECT SUBSTRING(fname FROM 1 FOR 1) ||
						SUBSTRING(mname FROM 1 FOR 1) ||
						SUBSTRING(lname FROM 1 FOR 1)
						FROM employees WHERE id = empid);
		RETURN result;
	END;


If I create the same function on my computer running PostgreSQL 8.3.0 and
try 
the \df+ then the Source Code shows:

\x09DECLARE                                                   
                                                                          
                       
\x09\x09result text;                                          
                                                                          
                        : 
\x09                                                          
                                                                          
                        : 
\x09BEGIN                                                     
                                                                          
                        : 
\x09\x09result := (SELECT SUBSTRING(fname FROM 1 FOR 1) ||    
                                                                          
                        : 
\x09\x09\x09\x09\x09\x09SUBSTRING(mname FROM 1 FOR 1) ||      
                                                                          
                        : 
\x09\x09\x09\x09\x09\x09SUBSTRING(lname FROM 1 FOR 1)         
                                                                          
                        : 
\x09\x09\x09\x09\x09\x09FROM employees WHERE id = empid);     
                                                                          
                        : 
\x09\x09RETURN result;                                        
                                                                          
                        : 
\x09END;      


I've tried changing the database encoding and some other things, but can't

seem to fix this.


-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 4 Posts in Topic:
encoding problems
cliff@[EMAIL PROTECTED]   2008-03-11 10:10:15 
Re: encoding problems
tgl@[EMAIL PROTECTED] (T  2008-03-11 12:41:35 
Re: encoding problems
cliff@[EMAIL PROTECTED]   2008-03-11 14:07:40 
Re: [HACKERS] encoding problems
tgl@[EMAIL PROTECTED] (T  2008-03-12 10:35:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 1:53:28 CDT 2008.