This is only a very minor point, .. but i like nitpicking :-)
When creating a VARCHAR column, Heidi puts 50 as the default length. .. why 50? :)
I virtually always define it as 255. It requires the same space for any input and MySQL doesn't generate an error when you try to insert a length of 51 into a VARCHAR(50) field, but silently chops off the last character. So, 50 has only negative consequences and no advantage over 255
default length for varchar fields
What you said makes no sense that it is why you have not recieved a response.
When I create a new table then the first data type is TINYINT length = 3.
When I change it to VARCHAR = 3 I have to manually input the length to suite my needs.
Cheers
Hope this helps.
When I create a new table then the first data type is TINYINT length = 3.
When I change it to VARCHAR = 3 I have to manually input the length to suite my needs.
Cheers
Hope this helps.
Wow... be a bit more polite to other users, simkin's question is quite legitimate. I didn't reply yet as I oversaw this post. (And sorry, but there is no manual to read...)
The default length 50 is a quite random number I decided to use. Increasing the default to a maximum is not good in all cases I can think of. But here it makes some sense I think, as it is better than 50.
The default length 50 is a quite random number I decided to use. Increasing the default to a maximum is not good in all cases I can think of. But here it makes some sense I think, as it is better than 50.
The "50" will show in the length-inputbox when you add a new varchar-column either in the column-editor or in the create-table-dialog.
I click on create table the first option is "TINYINT which is equal to 3"
If you have another version, where can I get it?
My version is = 3 RC4 blah blah blah
Ok cool the VARCHAR = 50
Ok so what is the problem again?
Why the application makes it 50 and you don't have an option to make it a default of 255?
Just change it - MySQL is rubbish anyway.
It wont ever be the BE ALL - END ALL!
PHP and MySQL sucks as far as I am concerned but that is my opinion as ASP is my first choice but my host only does PHP so my sites are all done in the very fun world of PHP.
Yes I am irritated by it, but hey who cares.
Cheers
West
Ok so what is the problem again?
Why the application makes it 50 and you don't have an option to make it a default of 255?
Just change it - MySQL is rubbish anyway.
It wont ever be the BE ALL - END ALL!
PHP and MySQL sucks as far as I am concerned but that is my opinion as ASP is my first choice but my host only does PHP so my sites are all done in the very fun world of PHP.
Yes I am irritated by it, but hey who cares.
Cheers
West
Ok cool the VARCHAR = 50
Ok so what is the problem again?
Why the application makes it 50 and you don't have an option to make it a default of 255?
There's not really a 'problem'
I only pointed out that VARCHAR(50) has disadvantages compared to VARCHAR(255) and no advantages. So, i find myself having to change the default everytime i create a VARCHAR field. And since VARCHAR(50) only has disadvantages i suggested the default should change to 255.
But as i said, it's just a minor thing.
Before someone asks about that: The fact that we use a default value for certain datatypes as varchar arose from the issue that you have to specify a default for them, otherwise the statement will fail. At this point I thougt a default of 50 would be quite good. Now we will change this default to 255 I think.
Please login to leave a reply, or register at first.