Received: from dilbert.nurseamerica.net (unknown [207.53.237.114]) by postgresql.org (Postfix) with ESMTP id 77A85475D8B for ; Wed, 10 Jul 2002 11:58:30 -0400 (EDT) Received: from nurseamerica.net (archimedes.myrdin.net [206.176.158.41]) by dilbert.nurseamerica.net (8.11.6/8.11.6) with ESMTP id g6AFwXj21178; Wed, 10 Jul 2002 10:58:33 -0500 Message-ID: <3D2C59A7.5090304@nurseamerica.net> Date: Wed, 10 Jul 2002 10:58:31 -0500 From: Kevin Brannen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: luis.felipe@unibase.com.mx Cc: pgsql-admin@postgresql.org Subject: Re: SqlServer to PostgreSql References: <20020709191805531.AAA2276@mailserver.mvs.net.mx@there> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200207/164 X-Sequence-Number: 4850 Luis Felipe Acevedo Fernandez wrote: > Hi! > I triyed to migrate a database from SqlServer to PostgreSql, but I have a > problem with char or varchar data types cos If I try to insert or select some > information from a table the program retrieve blank spaces, my program was > develop in PowerBuilder 7 > > Example If there is a table with a column char(5) and I insert the word "Hi" > with 2 character when the program try to retrieve the information > it gets "Hi " > > thats my problem i hope some one can help That is proper behavior for the "char" datatype. Change your column to "varchar(5)" and you should get what you want--no padding with spaces. HTH, Kevin