pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: Luis Felipe Acevedo Fernandez <luis.felipe@unibase.com.mx>
Cc: pgsql-admin@postgresql.org
Subject: Re: SqlServer to PostgreSql
Date: Wed, 10 Jul 2002 17:58:55 -0700 (PDT)
Message-ID: <20020711005855.16548.qmail@web40020.mail.yahoo.com> (raw)
In-Reply-To: <20020709191805531.AAA2276@mailserver.mvs.net.mx@there>
--- Luis Felipe Acevedo Fernandez
<luis.felipe@unibase.com.mx> 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 "
>
I also encountered the same problem in Oracle when
porting char(n) datatypes. Since char(n) datatypes
pads the string with spaces until it has n number of
characters. What you can do is you can use either
ltrim,rtrim in selecting the data from SQL Server, or
use the trim() function in the PowerBuilder before
inserting it to a postgres database.
ludwig
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
view thread (3+ messages)
Message-ID: <20020711005855.16548.qmail@web40020.mail.yahoo.com> Permalink: ../20020711005855.16548.qmail@web40020.mail.yahoo.com/ Also on: postgresql.org/message-id/20020711005855.16548.qmail@web40020.mail.yahoo.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-admin@postgresql.org Cc: lud_nowhere_man@yahoo.com, luis.felipe@unibase.com.mx Subject: Re: SqlServer to PostgreSql In-Reply-To: <20020711005855.16548.qmail@web40020.mail.yahoo.com> References: <20020709191805531.AAA2276@mailserver.mvs.net.mx@there> <20020711005855.16548.qmail@web40020.mail.yahoo.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox