I'd like to create a column which will contain boolean values, I don't want to use TINYINT(0)
and store 0 for false and 1 for true, instead i'd like to store "true" or "false" values but not as VARCHAR
values.
I'm doing this because I'm using Extjs, and I'm dynamically creating comboboxes, I need those boolean values to use as parameters like so :
function createComboBox(editable) {
var combo = new Ext.form.ComboBox({
typeAhead: true,
mode: 'local',
forceSelection: true,
triggerAction: 'all',
emptyText: 'Select item...',
selectOnFocus: true,
//...other settings
editable: editable // true or false
});
return combo;
};
And editable would be "true" or "false" (without quotes).
Should I just use a varchar
column and remove the quotes in Extjs? Is there a better way?