boss_db postgresql result have long empty string

11 vues
Accéder directement au premier message non lu

Phang Mulianto

non lue,
13 nov. 2016, 06:39:5913/11/2016
à 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

non lue,
14 nov. 2016, 08:03:5714/11/2016
à 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

non lue,
14 nov. 2016, 11:46:2114/11/2016
à ChicagoBoss,23161...@qq.com
Hi Tx,

This is works... use varchar in postgresql

Xie Xie

Mulianto
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message