RE: InnoDB table, NOT NULL question

2003-01-15 Thread Gabe Geisendorfer
Sent: Wednesday, January 15, 2003 1:23 AM To: [EMAIL PROTECTED] Subject: Re: InnoDB table, NOT NULL question In article <[EMAIL PROTECTED]>, Adolfo Bello <[EMAIL PROTECTED]> writes: > This is wierd. If you define a field as not null is because you want > the user to enter some d

Re: InnoDB table, NOT NULL question

2003-01-15 Thread Michael T. Babcock
Harald Fuchs wrote: You _did_ enter some data, namely a string which just happens to be the empty string (which in turn is different from "no data", i.e. NULL). How should MySQL know that you don't want empty strings? I think the user expects: INSERT INTO table (bar) VALUES ("text"); to beha

Re: InnoDB table, NOT NULL question

2003-01-14 Thread Adolfo Bello
> >>I have an InnoDB table that looks like the following. > >> > >>CREATE TABLE `stuff` ( > >> `stuff_id` int(11) NOT NULL auto_increment, > >> `somevalue1` varchar(35) NOT NULL, > >> `somevalue2` varchar(35) NOT NULL, > >> PRIMARY KEY (`stuff_id`) > >>) TYPE=InnoDB COMMENT='stuff table'; > >>

RE: InnoDB table, NOT NULL question

2003-01-14 Thread Gabe Geisendorfer
1 AM To: [EMAIL PROTECTED] Subject: Re: InnoDB table, NOT NULL question > > >>Hello, I'm in the process of moving from Postgres to MySQL and I have >>a question. >>+How do you prevent a field from being left empty? >> >>I have an InnoDB table that looks like

RE: InnoDB table, NOT NULL question

2003-01-14 Thread Gabe Geisendorfer
x27;s. Thanks, Gabe -Original Message- From: Egor Egorov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 7:11 AM To: [EMAIL PROTECTED] Subject: re: InnoDB table, NOT NULL question On Monday 13 January 2003 23:38, Gabe Geisendorfer wrote: > Hello, I'm in the process o

Re: InnoDB table, NOT NULL question

2003-01-14 Thread Csongor Fagyal
Hello, I'm in the process of moving from Postgres to MySQL and I have a question. +How do you prevent a field from being left empty? I have an InnoDB table that looks like the following. CREATE TABLE `stuff` ( `stuff_id` int(11) NOT NULL auto_increment, `somevalue1` varchar(35) NOT NULL,

re: InnoDB table, NOT NULL question

2003-01-14 Thread Egor Egorov
On Monday 13 January 2003 23:38, Gabe Geisendorfer wrote: > Hello, I'm in the process of moving from Postgres to MySQL and I have a > question. > +How do you prevent a field from being left empty? > > I have an InnoDB table that looks like the following. > > CREATE TABLE `stuff` ( > `stuff_i