| ||||||||
Election 2006 (and beyond): Digital Copyright Canada
From: "Krishna E . Bera" <keb_-at-_cyblings.on.ca>
To: people_-at-_planetfriendly.net
Cc: flora-admin-help_-at-_flora.org
Date: Wed, 19 Dec 2001 23:12:12 +0500
References: <3C20FDA2.11289.1127F24@localhost>
I failed to duplicate this with version 3.23.36
using your table definitions and your insert statement (appended below).
The database on Flora is 3.23.33
Also failed to duplicate it on Flora with a new smaller table.
None of the MySQL upgrade Change logs mention that bug.
Are you sure it is MySQL that is inserting that "set approve=0" clause?
What's in Submit2.php3?
-krishna
On 2001.12.20 06:50 Peter Blanchard wrote:
Russell, Mike, Krishna,
There seems to be a bug in MySQL. I recently
dropped a field (called "approve") from a table.
The field had a default value of 0.
Now, when I issue an INSERT statement on
the table, MySQL automatically adds a clause
to that statement: "set approve=0". This
results in MySQL error 1054, "unknown column
'approve' in 'field list'".
I surfed the web... others seem to have found the
same problem, but I haven't found any answers.
As a temporary workaround, I've re-added the
field to the table. I tried dropping it again,
and the same error occurred. If this keeps up,
I'll end up with lots of unused fields in my
tables!
Any ideas?
With thanks,
- peter
P.S. Complete error message:
Error: Couldn't execute SQL statement.
Error occurred while using form: Submit2.php3
Listing Title: 18th Annual Vegetarian Food Fair
Contact E-mail: foodfair@veg.ca
Php ErrorMsg:
MySql err #: 1054
MySql error: Unknown column 'approve' in 'field list'
INSERT INTO event set Title = "18th Annual Vegetarian Food Fair",
ListingType = "Event", Topic = "Food", Topic2 = "AltHealth", Keywords =
"Vegetarian, vegan", StartDay = "Fri", StartMonth = "09", StartDate =
"13", StartYear = "2002", Startd = "2002-09-13", EndDay = "Sun", EndMonth
= "09", EndDate = "15", EndYear = "2002", Endd = "2002-09-15", StartHour =
NULL, StartMinute = NULL, StartAmPm = NULL, EndHour = NULL, EndMinute =
NULL, EndAmPm = NULL, Recur = "annual", RecurComments = NULL, Address =
"York Quay Centre at Harbourfront Centre (235 Queen\'s Quay West)", City =
"Toronto", Province = "ON", Country = "Canada", NearestCity = "Toronto",
Region = "Toronto", Descrip = "The Annual Vegetarian Food Fair is a
fun-filled weekend celebration offering visitors an opportunity to sample
vegetarian cuisine and learn more about making healthful, ethical and
earth-friendly food choices. Best of all, it\'s free to the public! Each
year, over 12,000 people from across Canada, the United States and beyond
travel to Toronto to join the festivities, making our Food Fair the
largest annual vegetarian event of its kind in North America!",
MoreDescrip = "Sample new vegetarian products; visit over 70 exhibits;
enjoy free food samples; learn from hourly cooking demonstrations; hear
dynamic guest speakers; participate in interactive workshops; taste great
meals in the Vegetarian Cafe!", Org = "Toronto Vegetarian Association",
Price = "free", RSVP = "No", RegDay = NULL, RegMonth = NULL, RegDate =
NULL, RegYear = "2001", RegDateFirm = "No", RegComments = NULL,
ContactName = "Kathleen Farley, Food Fair Coordinator", ContactEmail =
"foodfair@veg.ca", ContactPhone = "416-544-8891", ContactFax =
"416-544-9094", ContactWeb = "http://www.veg.ca/foodfair", ContactWeb2 =
NULL, ContactMore = NULL, SubmitEmail = NULL, SubmitName = NULL,
SubmitPhone = NULL, SubmitComments = "Please list in the January preview
edition. Thanks! :) Kathleen.", ListWhenPref = "other ", submittedby =
"u", digestdescrip = NULL, todownload = 1, toupload = 0, event = NULL, eid
= NULL, dateentered = now(), entrymode = "w", datedownload = NULL,
dateupload = NULL, mailer = "submit2.php3", fusing = "Mozilla/4.0
(compatible; MSIE 5.0; Mac_PowerPC)", hostname =
"ip90.toronto77.dialup.canada.psi.net", ipaddr = "154.20.71.90",
dateapprove = NULL, datehide = NULL, source = "webform", approve = 0,
directory = 0, hide = 0, hidereason = NULL, datetext = "Fri 09 13 - Sun 09
15 : ", oppcomments = NULL, titleorig = NULL ;
| Please read the FLORA.org Terms and Conditions before you submit information to FLORA.org | |
|
(USA) (Canada) |
|