You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Anil Gangolli <an...@busybuddha.org> on 2006/05/23 16:29:59 UTC

Roller breaking on MySQL 5.0.3 and higher releases

Roller breaks on MySQL 5.0.3 and higher releases due to the use of the BIT type instead of TINYINT.  I think MySQL is up beyond 5.0.18 now, and lots of people are running recent versions of 5.x.

Prior to 5.0.3, BIT was a synoynym for TINYINT(1).   It no longer is, and it seems not to hold a boolean type properly (not sure why).  People on the users list have been hitting this left and right with different symptoms.

We probably should change the MySQL createdb and upgrade scripts to use TINYINT(1) instead of BIT before 2.3 releases.   Users have figured out to do this themselves.  A release note is a (much less preferable) second option.

Re: Roller breaking on MySQL 5.0.3 and higher releases

Posted by Anil Gangolli <an...@busybuddha.org>.
OK.  I've checked in a new metadata/database/mysql.properties file on the 
trunk and on the 2.3 branch.  If you update you should get it.   SVN 
revisions numbers are 408940 and 408946.

--a.



----- Original Message ----- 
From: "David M Johnson" <Da...@Sun.COM>
To: <ro...@incubator.apache.org>
Sent: Tuesday, May 23, 2006 8:10 AM
Subject: Re: Roller breaking on MySQL 5.0.3 and higher releases


>
> On May 23, 2006, at 10:38 AM, Anil Gangolli wrote:
>> I'd like to change BOOLEAN_SQL_TYPE (and the other related  definitions) 
>> for mysql to use TINYINT(1) instead of BIT at least in  the trunk.  Any 
>> objections?
>> We can decide separately whether this warrants merging to the 2.3  branch 
>> and re-spinning.
>
> If you make the change, I'll re-spin the build.
>
> - Dave
> 


Re: Roller breaking on MySQL 5.0.3 and higher releases

Posted by David M Johnson <Da...@Sun.COM>.
On May 23, 2006, at 10:38 AM, Anil Gangolli wrote:
> I'd like to change BOOLEAN_SQL_TYPE (and the other related  
> definitions) for mysql to use TINYINT(1) instead of BIT at least in  
> the trunk.  Any objections?
> We can decide separately whether this warrants merging to the 2.3  
> branch and re-spinning.

If you make the change, I'll re-spin the build.

- Dave


Re: Roller breaking on MySQL 5.0.3 and higher releases

Posted by Allen Gilliland <al...@sun.com>.
Sounds good to me.

-- Allen


Anil Gangolli wrote:
> 
> I'd like to change BOOLEAN_SQL_TYPE (and the other related definitions) 
> for mysql to use TINYINT(1) instead of BIT at least in the trunk.  Any 
> objections?
> 
> We can decide separately whether this warrants merging to the 2.3 branch 
> and re-spinning.
> 
> --a.
> 
> ----- Original Message ----- From: "Anil Gangolli" <an...@busybuddha.org>
> To: <ro...@incubator.apache.org>
> Sent: Tuesday, May 23, 2006 7:29 AM
> Subject: Roller breaking on MySQL 5.0.3 and higher releases
> 
> 
> 
> Roller breaks on MySQL 5.0.3 and higher releases due to the use of the 
> BIT type instead of TINYINT.  I think MySQL is up beyond 5.0.18 now, and 
> lots of people are running recent versions of 5.x.
> 
> Prior to 5.0.3, BIT was a synoynym for TINYINT(1).   It no longer is, 
> and it seems not to hold a boolean type properly (not sure why).  People 
> on the users list have been hitting this left and right with different 
> symptoms.
> 
> We probably should change the MySQL createdb and upgrade scripts to use 
> TINYINT(1) instead of BIT before 2.3 releases.   Users have figured out 
> to do this themselves.  A release note is a (much less preferable) 
> second option.

Re: Roller breaking on MySQL 5.0.3 and higher releases

Posted by Anil Gangolli <an...@busybuddha.org>.
No.  In older versions of MySQL if you created a field of type BIT you would 
actually get a field of type TINYINT(1).

--a.

----- Original Message ----- 
From: "Lance Lavandowska" <la...@gmail.com>
To: <ro...@incubator.apache.org>
Sent: Tuesday, May 23, 2006 7:41 AM
Subject: Re: Roller breaking on MySQL 5.0.3 and higher releases


> Would this cause any breakage for people using an older version of MySQL?
>
> On 5/23/06, Anil Gangolli <an...@busybuddha.org> wrote:
>>
>> I'd like to change BOOLEAN_SQL_TYPE (and the other related definitions) 
>> for
>> mysql to use TINYINT(1) instead of BIT at least in the trunk.  Any
>> objections?
>>
>> We can decide separately whether this warrants merging to the 2.3 branch 
>> and
>> re-spinning.
>>
>> --a.
>>
>> ----- Original Message -----
>> From: "Anil Gangolli" <an...@busybuddha.org>
>> To: <ro...@incubator.apache.org>
>> Sent: Tuesday, May 23, 2006 7:29 AM
>> Subject: Roller breaking on MySQL 5.0.3 and higher releases
>>
>>
>>
>> Roller breaks on MySQL 5.0.3 and higher releases due to the use of the 
>> BIT
>> type instead of TINYINT.  I think MySQL is up beyond 5.0.18 now, and lots 
>> of
>> people are running recent versions of 5.x.
>>
>> Prior to 5.0.3, BIT was a synoynym for TINYINT(1).   It no longer is, and 
>> it
>> seems not to hold a boolean type properly (not sure why).  People on the
>> users list have been hitting this left and right with different symptoms.
>>
>> We probably should change the MySQL createdb and upgrade scripts to use
>> TINYINT(1) instead of BIT before 2.3 releases.   Users have figured out 
>> to
>> do this themselves.  A release note is a (much less preferable) second
>> option.
>>
>>
> 


Re: Roller breaking on MySQL 5.0.3 and higher releases

Posted by Lance Lavandowska <la...@gmail.com>.
Would this cause any breakage for people using an older version of MySQL?

On 5/23/06, Anil Gangolli <an...@busybuddha.org> wrote:
>
> I'd like to change BOOLEAN_SQL_TYPE (and the other related definitions) for
> mysql to use TINYINT(1) instead of BIT at least in the trunk.  Any
> objections?
>
> We can decide separately whether this warrants merging to the 2.3 branch and
> re-spinning.
>
> --a.
>
> ----- Original Message -----
> From: "Anil Gangolli" <an...@busybuddha.org>
> To: <ro...@incubator.apache.org>
> Sent: Tuesday, May 23, 2006 7:29 AM
> Subject: Roller breaking on MySQL 5.0.3 and higher releases
>
>
>
> Roller breaks on MySQL 5.0.3 and higher releases due to the use of the BIT
> type instead of TINYINT.  I think MySQL is up beyond 5.0.18 now, and lots of
> people are running recent versions of 5.x.
>
> Prior to 5.0.3, BIT was a synoynym for TINYINT(1).   It no longer is, and it
> seems not to hold a boolean type properly (not sure why).  People on the
> users list have been hitting this left and right with different symptoms.
>
> We probably should change the MySQL createdb and upgrade scripts to use
> TINYINT(1) instead of BIT before 2.3 releases.   Users have figured out to
> do this themselves.  A release note is a (much less preferable) second
> option.
>
>

Re: Roller breaking on MySQL 5.0.3 and higher releases

Posted by Anil Gangolli <an...@busybuddha.org>.
I'd like to change BOOLEAN_SQL_TYPE (and the other related definitions) for 
mysql to use TINYINT(1) instead of BIT at least in the trunk.  Any 
objections?

We can decide separately whether this warrants merging to the 2.3 branch and 
re-spinning.

--a.

----- Original Message ----- 
From: "Anil Gangolli" <an...@busybuddha.org>
To: <ro...@incubator.apache.org>
Sent: Tuesday, May 23, 2006 7:29 AM
Subject: Roller breaking on MySQL 5.0.3 and higher releases



Roller breaks on MySQL 5.0.3 and higher releases due to the use of the BIT 
type instead of TINYINT.  I think MySQL is up beyond 5.0.18 now, and lots of 
people are running recent versions of 5.x.

Prior to 5.0.3, BIT was a synoynym for TINYINT(1).   It no longer is, and it 
seems not to hold a boolean type properly (not sure why).  People on the 
users list have been hitting this left and right with different symptoms.

We probably should change the MySQL createdb and upgrade scripts to use 
TINYINT(1) instead of BIT before 2.3 releases.   Users have figured out to 
do this themselves.  A release note is a (much less preferable) second 
option.