Joinutility seperatorLogin utility separator Infobright.com
   
 
ZEROFILL
Posted: 05 April 2010 05:26 PM   Ignore ]  
Newbie
Avatar
Rank
Total Posts:  9
Joined  2010-04-05

How come zerofill is not supported?

Will it be supported?

Any work around that would not cause issues or performance loss?

Profile
 
Posted: 09 April 2010 08:11 AM   Ignore ]   [ # 1 ]  
Sr. Member
Avatar
RankRankRankRank
Total Posts:  487
Joined  2008-08-18

Hello,

Let me start with a reference to MySQL’s ZEROFILL:

http://dev.mysql.com/doc/refman/5.4/en/numeric-types.html

Additionally, I looked at:

http://bytes.com/topic/mysql/answers/141614-zerofill

Unfortunately, we don’t support it and it’s rather not planned.

Please write more about why you may need it? To format nicely the results of a query?

Best greetings,

Dominik

Signature 
Profile
 
Posted: 09 April 2010 10:04 AM   Ignore ]   [ # 2 ]  
Super Duper Member
Avatar
RankRankRankRankRank
Total Posts:  915
Joined  2008-08-18

Hi !

What about using LPAD(field,width,‘0’) ?

Profile
 
Posted: 09 April 2010 10:30 AM   Ignore ]   [ # 3 ]  
Sr. Member
Avatar
RankRankRankRank
Total Posts:  738
Joined  2008-08-18

From the MySQL Administrator’s Guide:

If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column.

Until Infobright supports the UNSIGNED integer data type, this would not be possible.

Signature 
Profile