Stability of MyISAM-Ststis vs. Dynamic - (was: Automatic conversion from `char` TO `varchar`)

2004-02-09 Thread Merten Christian
As to the discussion about char vs. varchar fields, I am now into a problem which is near by the above one: We are about to design a new database with high importance to stability and crash recovery. So I found, that two types of MyISAM tables exist (static and dynamic). If you have only fixed

Re: Stability of MyISAM-Ststis vs. Dynamic - (was: Automatic conversion from `char` TO `varchar`)

2004-02-09 Thread Jocelyn Fournier
, 2004 10:01 AM Subject: Stability of MyISAM-Ststis vs. Dynamic - (was: Automatic conversion from `char` TO `varchar`) As to the discussion about char vs. varchar fields, I am now into a problem which is near by the above one: We are about to design a new database with high importance to stability

Re: Automatic conversion from `char` TO `varchar`

2004-02-09 Thread Matt Fagan
OK, this will be my last post on this topic. Mainly I want to point out that I was taking the wrong conclusions from the results of my tests. I followed the advice of Michael Stassen and ran some more tests using int columns for joins and got pretty much the same trend. So I guess the real answer

Re: Automatic conversion from `char` TO `varchar`

2004-02-08 Thread Matt Fagan
10, 2004 7:06 AM Subject: Automatic conversion from `char` TO `varchar` Hi, It's really strange but when I execute the following statement, all my char(10) columns turn into varchar(10). My other tables are ok and I've tried create dummy table also. Problem seems to be associated with this table

Re: Automatic conversion from `char` TO `varchar`

2004-02-08 Thread Michael Stassen
the auto-conversion of CHAR to VARCHAR ? - Original Message - From: Hassan Shaikh [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, January 10, 2004 7:06 AM Subject: Automatic conversion from `char` TO `varchar` Hi, It's really strange but when I execute

Re: Automatic conversion from `char` TO `varchar`

2004-02-08 Thread Matt Fagan
-conversion of CHAR to VARCHAR ? - Original Message - From: Hassan Shaikh [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, January 10, 2004 7:06 AM Subject: Automatic conversion from `char` TO `varchar` Hi, It's really strange but when I execute

Re: Automatic conversion from `char` TO `varchar`

2004-01-12 Thread Martijn Tonies
Hi Michael, The manual http://www.mysql.com/doc/en/Open_bugs.html says The following problems are known and will be fixed in due time: [...] All string columns, except BLOB and TEXT columns, automatically have all trailing spaces removed when retrieved. For CHAR types this is okay, and

Re: Automatic conversion from `char` TO `varchar`

2004-01-12 Thread Matt W
Hi, - Original Message - From: Michael Stassen Sent: Sunday, January 11, 2004 5:10 PM Subject: Re: Automatic conversion from `char` TO `varchar` Martijn Tonies wrote: Hi, The manual http://www.mysql.com/doc/en/Open_bugs.html says The following problems are known

Re: Automatic conversion from `char` TO `varchar`

2004-01-12 Thread Michael Stassen
Martijn Tonies wrote: Hi Michael, The manual http://www.mysql.com/doc/en/Open_bugs.html says The following problems are known and will be fixed in due time: [...] All string columns, except BLOB and TEXT columns, automatically have all trailing spaces removed when retrieved. For CHAR types

Re: Automatic conversion from `char` TO `varchar`

2004-01-12 Thread Martijn Tonies
Hi Michael, Indeed. Nevertheless, I'm right at this one :-) I defer to your expertise on SQL standards. Regardless of the standard, however, mysql does not pad CHARs with spaces. Thus, CHARs and VARCHARs are identical from the client's point of view, so silently changing CHARs to

Re: Automatic conversion from `char` TO `varchar`

2004-01-12 Thread Bernard Kenik
you seem to have mixed single and double quotes. this might be your problem - Original Message - From: Hassan Shaikh [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, January 10, 2004 7:06 AM Subject: Automatic conversion from `char` TO `varchar` Hi, It's

Re: Automatic conversion from `char` TO `varchar`

2004-01-11 Thread Michael Stassen
Martijn Tonies wrote: Hi, The manual http://www.mysql.com/doc/en/Open_bugs.html says The following problems are known and will be fixed in due time: [...] All string columns, except BLOB and TEXT columns, automatically have all trailing spaces removed when retrieved. For CHAR types this is

Automatic conversion from `char` TO `varchar`

2004-01-10 Thread Hassan Shaikh
Hi, It's really strange but when I execute the following statement, all my char(10) columns turn into varchar(10). My other tables are ok and I've tried create dummy table also. Problem seems to be associated with this table only. CREATE TABLE `offer` ( `SVID` int(11) NOT NULL

Re: Automatic conversion from `char` TO `varchar`

2004-01-10 Thread Luciano Barcaro
No, it´s not strange. Look the manual at http://www.mysql.com/doc/en/Silent_column_changes.html Best Regards --- Luciano Barcaro Depto. Informática - Laboratório Alvaro Hassan Shaikh wrote: Hi, It's really strange but when I execute the following statement, all my char(10) columns turn into

Re: Automatic conversion from `char` TO `varchar`

2004-01-10 Thread Fred van Engen
On Sat, Jan 10, 2004 at 05:06:56PM +0500, Hassan Shaikh wrote: It's really strange but when I execute the following statement, all my char(10) columns turn into varchar(10). My other tables are ok and I've tried create dummy table also. Problem seems to be associated with this table only.

Re: Automatic conversion from `char` TO `varchar`

2004-01-10 Thread Martijn Tonies
Hi, No, it´s not strange. Look the manual at http://www.mysql.com/doc/en/Silent_column_changes.html Yes, it's documented. But it still is strage. CHAR should, according to the SQL specification, pad any value smaller than the defined number of characters with spaces when it returns the value

Re: Automatic conversion from `char` TO `varchar`

2004-01-10 Thread Michael Stassen
The manual http://www.mysql.com/doc/en/Open_bugs.html says The following problems are known and will be fixed in due time: [...] All string columns, except BLOB and TEXT columns, automatically have all trailing spaces removed when retrieved. For CHAR types this is okay, and may be regarded as a

Re: Automatic conversion from `char` TO `varchar`

2004-01-10 Thread Martijn Tonies
Hi, The manual http://www.mysql.com/doc/en/Open_bugs.html says The following problems are known and will be fixed in due time: [...] All string columns, except BLOB and TEXT columns, automatically have all trailing spaces removed when retrieved. For CHAR types this is okay, and may