![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi i m having the following problem... i 'm starting a query with the count(*) function.... like: select aFieldName, count(*) as cant ........ ; the thing is that i m doing a type check when i got the Result object... with, result.types(j).base_type() == typeid(std::string) and with resultado.types(j).base_type() == typeid(int) |
#3
| |||
| |||
|
|
i ve already done it.. base_type().name() under the %s format brings me up a beautiful "x"!!! On 4/25/05, Chris Frey <cdfrey (AT) netdirect (DOT) ca> wrote: On Mon, Apr 25, 2005 at 11:45:49AM -0300, Nicolas Barrera wrote: hi i m having the following problem... i 'm starting a query with the count(*) function.... like: select aFieldName, count(*) as cant ........ ; the thing is that i m doing a type check when i got the Result object... with, result.types(j).base_type() == typeid(std::string) and with resultado.types(j).base_type() == typeid(int) You could try printing the base_type to see what it is. - Chris -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com |
#4
| |||
| |||
|
|
Hi Nicolas, =20 You emailed this a while ago, but I've been playing around with the type info classes in mysql++... don't have any insights on your problem yet, but what version of mysql C API (not mysql++) are you running? |
|
(please reply to the list) sorry..., i pressed reply in gmail.., won't happen again |
|
Thanks, - Chris thanks to you! |
#5
| |||
| |||
|
|
I don't get it.., the C api for mysql isn't MYSQL++?? anyway... i 'm using.. mysql version 4.0.20, libsqlplus 1.0.7, mysql++ 1.7.32 |
#6
| |||
| |||
|
|
Nicolas Barrera wrote: I don't get it.., the C api for mysql isn't MYSQL++?? anyway... i 'm using.. mysql version 4.0.20, libsqlplus 1.0.7, mysql++ = 1.7.32 =20 No, MySQL++ is only a wrapper around the C API; everything mysql++ does i= s basically just a lot of convenience to make the C++ programmer's life eas= ier. =20 |
#7
| |||
| |||
|
|
where could i check the real mysql api ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |