4 messages in com.mysql.lists.bugsRe: Mysql++ under windows| From | Sent On | Attachments |
|---|---|---|
| Julie Wilson | 25 Feb 2002 01:54 | |
| Sinisa Milivojevic | 26 Feb 2002 04:23 | |
| Richard Morton | 26 Feb 2002 07:35 | |
| Venu | 28 Feb 2002 10:28 |
| Subject: | Re: Mysql++ under windows![]() |
|---|---|
| From: | Sinisa Milivojevic (sin...@mysql.com) |
| Date: | 02/26/2002 04:23:30 AM |
| List: | com.mysql.lists.bugs |
Julie Wilson writes:
[skip]
Description: xlocnum(268) : error C2587: '_U' : illegal use of local variable as default parameter
The above should work and I do not know why it does not. LazyFox will reply to you directly on this issue.
custom2.cpp and custom3.cpp do not work correctly because they do not put quotes round strings and dates when used in queries. The problem seems to be in the mysql++ code itself instead rather that the example code. custom2 continually inserts a date of 0000-00-00 instead of 1996-09-25 and custom3 throws an exception:
Query : UPDATE stock SET item = 'Hotdog Buns',num = 65,weight = 1.1,price = 1.1, sdate = 1998-04-23 WHERE item = Hotdogs' Buns Error: You have an error in your SQL syntax near '' Buns' at line 1
I have the same problem using the libmysql.dll supplied with mysql++ and the one supplied
There are a number of SSQL features that do not work currently under VC++.
Regarding quotes, this is a problem in your program as all query strings sent to server should be escaped.
There is version 1.8.0 in preparation , which will bring all compilers to the approximately same level.
This makes me wonder what the current status is mysql++. Is it officially supported by mySQL AB ?. Would I be better off using the C API as opposed to the C++ API. I would like a quick response as I only have a few days to evaluate Mysql.
MySQL++ is officially support by MySQL AB. There are only some features that do not work on VC++ and BC++, but even that list of missing features will be shortened in 1.8.0. That is all.
-- Regards, __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <sin...@mysql.com> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer /_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus <___/ www.mysql.com




