Re: [dabo-users] PostgreSQL char fields are rpadded

Author: Ed Leafe

Posted: 2011-11-18 at 13:27:40

On Nov 18, 2011, at 12:18 PM, Paul McNett wrote:

> Ooh, here's an inconsistency, since in Python "abc " != "abc". Since the database

> does the padding/unpadding, the char values should come to the Dabo layer unpadded.

If you want that behavior, make it varchar, not char.

What if you stored "abc " in a char(20) field? What would be a consistent value to receive back?

-- Ed Leafe

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/37944427-E7C5-46FA-AE2A-389A17CEC42A@leafe.com

©2011 Ed Leafe