boss_db postgresql result have long empty string

11 views
Skip to first unread message

Phang Mulianto

unread,
Nov 13, 2016, 6:39:59 AM11/13/16
to ChicagoBoss
Hi,

I try CB with postgresql. 
The boss_db:find(model)    will have a return of object with long empty space along with the column content.

Let say i define model with name char(255)  in pgsql. and save name with "Success" it will saved and returned with "Success                                                    " <- until 255 char filled.

when return from boss_db query also the same. Do we need to trim down the result after query? or this is default behaviour? i see no example in guides anywhere.

Can someone give a clue on this.

Thanks,

Mulianto

TX

unread,
Nov 14, 2016, 8:03:57 AM11/14/16
to chicagoboss
try varchar instead of char

------------------ 原始邮件 ------------------
发件人: "Phang Mulianto";<brav...@gmail.com>;
发送时间: 2016年11月13日(星期天) 晚上7:39
收件人: "ChicagoBoss"<chica...@googlegroups.com>;

主题: [chicagoboss] boss_db postgresql result have long empty string

Thanks,

Mulianto


--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
Visit this group at https://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/e4533560-3324-462c-a68d-e7c2c6a05505%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Phang Mulianto

unread,
Nov 14, 2016, 11:46:21 AM11/14/16
to ChicagoBoss, 23161...@qq.com
Hi Tx,

This is works... use varchar in postgresql

Xie Xie

Mulianto
Reply all
Reply to author
Forward
0 new messages