License question on libmysql.dll and C/C++ API Version 4.0 question about Victoria Reznichenko response

2012-06-18 Thread Claudia Murialdo
Hello, Y read this message: http://lists.mysql.com/mysql/109590 and I would like to ask for authorization but I don´t see the email address in that thread (it says: sales@stripped). Can someone tell me that email address?. Thanks in advance. Claudia.

Re: License question on libmysql.dll and C/C++ API Version 4.0 question about Victoria Reznichenko response

2012-06-18 Thread Shawn Green
Hello Claudia, On 6/18/2012 2:13 PM, Claudia Murialdo wrote: Hello, Y read this message: http://lists.mysql.com/mysql/109590 and I would like to ask for authorization but I don´t see the email address in that thread (it says: sales@stripped). Can someone tell me that email address?. Thanks in

Re: C api mysql_store_result vs mysql_use_result

2012-02-09 Thread Johan De Meersman
- Original Message - From: Alex Schaft al...@quicksoftware.co.za If I were to do a select count(*) from x where y prior to doing select * from x where y to get a number of records, how would this impact performance on the server itself? Would the first query be the one to do the

Re: C api mysql_store_result vs mysql_use_result

2012-02-09 Thread Alex Schaft
On 2012/02/09 01:40 PM, Johan De Meersman wrote: - Original Message - From: Alex Schaftal...@quicksoftware.co.za If I were to do a select count(*) from x where y prior to doing select * from x where y to get a number of records, how would this impact performance on the server itself?

Re: C api mysql_store_result vs mysql_use_result

2012-02-09 Thread Johan De Meersman
use the cursor-based api (I guess that's mysql_use_result) all the time, and you won't have any memory problems at all. If you need to retrieve pages (as in, the third block of 10 results, for instance) LIMIT is your friend. Do read the documentation on limit, though - there's performance

C api mysql_store_result vs mysql_use_result

2012-02-08 Thread Alex Schaft
Hi, I'm currently using mysql_store_result to retrieve all records of a query. This poses a problem however if say a couple of thousand records get returned, and the user gets no feedback during the progress. I now want to change this to mysql_use_result. The only catch is that you don't

C++ API

2011-03-06 Thread Ruben Safir
OK - I see there is more than one C++ API for MYSQL. Which one would someone recommend and why? Ruben -- http://www.mrbrklyn.com - Interesting Stuff http://www.nylxs.com - Leadership Development in Free Software -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

C api query vs. real_query vs. send_query

2010-08-15 Thread Surendra Singhi
Hi, I am doing some work on a nodejs/v8 bindings for libmysqlclient and ran into some questions while working on the asynchronous part of the interface. http://github.com/kreetitech/node-mysql-libmysqlclient The documentation says that: mysql_query() cannot be used for statements that contain

Re: C API Function for count(*)

2010-05-15 Thread Bob Cole
with a relatively new API written in a programming language with a small user base (newlisp). The newlisp API imports a number of C API functions from the system MySQL shared object. If I were to issue a count(*) query from my monitor interface: Example: mysql select count(*) from clients

Re: C API Function for count(*)

2010-05-15 Thread Tim Johnson
(), mysql_fetch_row(), and mysql_fetch_lengths(). There's a simple code fragment to print a resultset on this page: http://dev.mysql.com/doc/refman/5.1/en/mysql-fetch-row.html Thanks Dan. I can use the C code there to model the code for the API. cheers -- Tim tim at johnsons-web.com or akwebsoft.com

Re: C API Function for count(*)

2010-05-15 Thread Tim Johnson
this command from the Terminal: mysql -u username -ppassword /Users/myname/Documents/testCount.txt The result was: COUNT(*) 12 Hi Bob: That's a good trick. It doesn't fit the API that I am trying to enhance, but it could be a good workaround by 'echo'ing to a tmpfile

C API Function for count(*)

2010-05-14 Thread Tim Johnson
I have MySQL version 5.0.84 on linux slackware 13.0 32-bit. I am working with a relatively new API written in a programming language with a small user base (newlisp). The newlisp API imports a number of C API functions from the system MySQL shared object. If I were to issue a count(*) query

Re: C API Function for count(*)

2010-05-14 Thread Dan Nelson
In the last episode (May 14), Tim Johnson said: I have MySQL version 5.0.84 on linux slackware 13.0 32-bit. I am working with a relatively new API written in a programming language with a small user base (newlisp). The newlisp API imports a number of C API functions from the system MySQL

MySQL Bin Log Position C API

2009-11-13 Thread Dave Juntgen
Hello everyone, Is there a way to get the last bin pos of a write using the C API? I'm wanting to use this for MASTER / SLAVE load balancing check. For example: M = Master S = Slave W = Write Q = Query W-M (get write bin pos). Now right after insert go query that rec and try using S

Re: Retrieving results of a stored function using MySql C API

2009-04-16 Thread Moon's Father
function using MySql C API. Kindly let me know how to do so. In case you need details I'll share the source code. Cheers, Venu -- I'm a MySQL DBA in china. More about me just visit here: http://yueliangdao0608.cublog.cn

Retrieving results of a stored function using MySql C API

2009-04-15 Thread Venu Gopal
Hi guys, I am using stored procedures and stored functions for the first time. And currently stuck at a this point where. I am unable to retrieve results returned by stored function using MySql C API. Kindly let me know how to do so. In case you need details I'll share the source code. Cheers

when calling mysql_real_connect from the c api, I get a malloc() memory corruption error.

2008-10-29 Thread Kevin Stevens
ello, I am encountering a problem I just can't seem to figure out and I am out of ideas. I can compile and run fine on one linux box running Mysql 5.1.23-rc, but as soon as I scp the binary and its required libs to another machine which has identical hardware and only a slightly upgraded distro

Re: when calling mysql_real_connect from the c api, I get a malloc() memory corruption error.

2008-10-29 Thread Micah Stevens
A working server relies on the MySQL binary, and system libraries, and the hardware itself. From your description you don't address the library compatibility. Have you ensured that your set of libraries is the same? -Micah On 10/29/2008 11:15 AM, Kevin Stevens wrote: ello, I am encountering

Re: when calling mysql_real_connect from the c api, I get a malloc() memory corruption error.

2008-10-29 Thread walter harms
Kevin Stevens schrieb: ello, I am encountering a problem I just can't seem to figure out and I am out of ideas. I can compile and run fine on one linux box running Mysql 5.1.23-rc, but as soon as I scp the binary and its required libs to another machine which has identical hardware and

Re: C api - mysql_list_fields

2008-10-07 Thread Joerg Bruehe
Hi Mike, all, Mike Aubury wrote: I'm probably being a bit stupid - but I'm trying to determine (in code) the length of the string in the schema for a given table. So - for example : create table a ( blah char(20) ) I want to return '20', but I'm

Re: C api - mysql_list_fields

2008-10-07 Thread Mike Aubury
Basically - so I can display it in the same form as the orginal table.. Or - if you want the longer version I work with an Opensource project called 'Aubit4GL' (its a clone of Informix4GL - which allows you to write really nice screen based database oriented programs + reports), see

Re: C api - mysql_list_fields

2008-10-07 Thread Joerg Bruehe
Mike, all, Mike Aubury wrote: [[...]] So - the next question is... Is there anyway in code I can find the 'fiddle' factor (1,3,or now possibly 4) that I need to use to divide by to get back to the character width specified in the CREATE TABLE ? In the information_schema database,

Re: C api - mysql_list_fields

2008-10-07 Thread Doug Bridgens
It works for me, I used your code: Field =mycol Type=254 Length=20 so at least your code is fine, and the problem must be somewhere else. I am using RH EL3. cheers, Doug On 6 Oct 2008, at 19:52, Mike Aubury wrote: I'm probably being a bit stupid - but I'm trying to determine (in code)

Re: C api - mysql_list_fields

2008-10-07 Thread walter harms
Mike Aubury schrieb: Excellent - this seems to be the issue - the show create table shows : mysql show create table a\g +---++ | Table | Create Table

Re: C api - mysql_list_fields

2008-10-07 Thread Mike Aubury
Excellent - this seems to be the issue - the show create table shows : mysql show create table a\g +---++ | Table | Create Table

Re: C api - mysql_list_fields

2008-10-07 Thread Simon J Mudd
[EMAIL PROTECTED] (Mike Aubury) writes: I'm probably being a bit stupid - but I'm trying to determine (in code) the length of the string in the schema for a given table. So - for example : create table a ( blah char(20) ) I want to return '20', but I'm

C api - mysql_list_fields

2008-10-06 Thread Mike Aubury
I'm probably being a bit stupid - but I'm trying to determine (in code) the length of the string in the schema for a given table. So - for example : create table a ( blah char(20) ) I want to return '20', but I'm getting '60' when I use mysql_list_fields..

unescaping strings with the C api

2008-06-12 Thread Tim Johnson
Using MySQL 5.0.45 on linux. For the first time I am using the C API directly. I am using mysql_real_escape_string() - see http://dev.mysql.com/doc/refman/5.1/en/mysql-real-escape-string.html I can not locate a C api function to _unescape_ strings. If there were one, I would use it. If I have

Re: unescaping strings with the C api

2008-06-12 Thread Warren Young
Tim Johnson wrote: I can not locate a C api function to _unescape_ strings. Why do you believe you need one? You need to escape strings when building SQL query strings to avoid problems with quote characters, which are special in SQL. When MySQL returns the queried data to your program

Re: unescaping strings with the C api

2008-06-12 Thread Tim Johnson
On Thursday 12 June 2008, Warren Young wrote: Tim Johnson wrote: I can not locate a C api function to _unescape_ strings. Why do you believe you need one? You need to escape strings when building SQL query strings to avoid problems with quote characters, which are special in SQL. When

Re: unescaping strings with the C api

2008-06-12 Thread Warren Young
was submitted by the original insert. My perspective is a little different from yours: as the maintainer of MySQL++ (http://tangentsoft.net/mysql++/), I have never actually used the C API directly. I don't have any pure C sample code here to tweak to try things. Instead, I changed one

Re: unescaping strings with the C api

2008-06-12 Thread Tim Johnson
, because it is not a true representation of what was submitted by the original insert. My perspective is a little different from yours: as the maintainer of MySQL++ (http://tangentsoft.net/mysql++/), I have never actually used the C API directly. I don't have any pure C sample code here

Re: unescaping strings with the C api

2008-06-12 Thread David Giragosian
API directly. I don't have any pure C sample code here to tweak to try things. Me neither - not any more anyway, since I quit coding in C C++ years ago.. Furthermore, I am also working with a scripting language new to me. My experience is with python - where unescaping is _not_ an issue

Re: unescaping strings with the C api

2008-06-12 Thread Tim Johnson
of the function. Yup. The API takes care of it all . definitely a case for using the API over TCP/IP tim -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: C API routines and cobol

2008-04-25 Thread Warren Young
Michael wrote: Has anyone successfully called the C API routines for MySQL from COBOL? Dude, April 1 was, like, a month ago now. You may have better luck finding an ODBC bridge for your COBOL environment, which let you access MySQL indirectly. -- MySQL General Mailing List For list

C API routines and cobol

2008-04-23 Thread Michael
Has anyone successfully called the C API routines for MySQL from COBOL? If so how are the parms defined in COBOL? -- Michael Anderson, J3k Solutions Sr.Systems Programmer/Analyst 832.515.3868 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

library with api for MySQL binlog parsing

2007-12-06 Thread Russell E Glaue
Does anyone know of a programming library/module (C or PERL or ?) to interface with the MySQL binary logs? Preferably a PERL module which wraps some C library to gain a PERL OO api interface to manipulating MySQL Binary Logs. If this does not exist, can someone point me at the API documentation

C API field type values are inacurate - help

2007-04-04 Thread Alan Nilsson
I have noticed that when using the C API that in certain instances the field 'type' constant is not correct. When a value is returned from a 'TEXT' type field it is reported as a 'BLOB' type. I realize that a TEXT is an extension of a BLOB, but, since they are different types according

Is there C API function to convert the MYSQL_ROW items from string to Language specified type?

2007-01-21 Thread David
Hi all: Is there a C API function to convert the MYSQL_ROW items from string to Language specified type? I thought there should be one, but I can't find it. Could you give me some advice? Appreciate your help! -- David

C API blobs

2006-12-08 Thread Mike Aubury
Can anyone point me in the direction of some examples of using the libmysqclient API for reading/writing blobs ? I'm currently reading the data from some dynamic SQL using mysql_stmt_bind_result mysql_stmt_fetch - and want to add the BLOB datatypes TIA -- Mike Aubury -- MySQL

mysql_server_init(), C API, And Dying Processes

2006-11-10 Thread David T. Ashley
What happens if I use the C API of MySQL and the process dies (maybe a pointer error or something)? a)Will the connection be killed automatically? b)What about LOCK TABLES and similar statements that were issued ... will the locks clear automatically? Thanks.

Re: Does new Community version change C API licensing?

2006-10-30 Thread Warren Young
Kaj Arnö wrote: So: For client licensing, nothing as changed -- but stay tuned for an announcement next week! Did I miss it? It's been almost 2 weeks, and I don't see anything in the MySQL press release archive or your blog. -- MySQL General Mailing List For list archives:

C API - Mysql 5

2006-10-25 Thread Vincent . Badier
Hello, I'm trying to compile some C code with the simple following code (dev-c++): #include stdio.h #include stdlib.h #include windows.h #include mysql.h int main(int argc, char *argv[]) { MYSQL * mysql_con = NULL; mysql_con = mysql_init(mysql_con); return 0; } As the result, i obtain

Re: C API - Mysql 5

2006-10-25 Thread Gabriel Linder
Hello, Did you try to convert the .lib file to a GCC .a library ? See http://mingw.org/mingwfaq.shtml#faq-msvcdll If reimp doesn't work, you can try pexports and dlltool. I have an old batch file I used for older MySQL versions at http://athanatos.free.fr/EXE/implib.bat [EMAIL

Does new Community version change C API licensing?

2006-10-17 Thread Warren Young
I've looked over as much of the information on the new Community vs. Enterprise version stuff as I can find, and I don't see an answer to this question. Basically, I want to know if the MySQL C API is still dual licensed, under the GPL and the MySQL commercial license. If so, I don't see how

Re: Does new Community version change C API licensing?

2006-10-17 Thread Kaj Arnö
vs. Enterprise version stuff as I can find, and I don't see an answer to this question. Basically, I want to know if the MySQL C API is still dual licensed, under the GPL and the MySQL commercial license. If so, I don't see how this new model is any different than before, except

phpinfo() Client API version 3.23.49

2006-09-19 Thread Muthu
Hi, I am using apache2.0+php4.3.4+mysql 4.1.1 in windows. If I type phpinfo(); , in mysql section it is coming as Client API version 3.23.49 . Is the installation correct?. Will the php connect to the mysql 4.1.1 server?. If i need to see Client API version 4.1.1 in mysql section, what

RE: phpinfo() Client API version 3.23.49

2006-09-19 Thread Quentin Bennett
@lists.mysql.com Subject: phpinfo() Client API version 3.23.49 Hi, I am using apache2.0+php4.3.4+mysql 4.1.1 in windows. If I type phpinfo(); , in mysql section it is coming as Client API version 3.23.49 . Is the installation correct?. Will the php connect to the mysql 4.1.1 server?. If i

MySQL C API: dedicated per-connections in the mutlithreading program

2006-09-08 Thread Andrew W. Nosenko
Sorry, but documentation on the MySQL C API say nothing about many interesting questions. The one of them: is it safe (or unsafe) to use non-MT client library (libmysqlclient.*, as opposite to the MT-aware libmysqlclient_r.*) for the multithreading programs in case when every parallel mysql

Re: MySQL C API: dedicated per-connections in the mutlithreading program

2006-09-08 Thread Philippe Poelvoorde
2006/9/8, Andrew W. Nosenko [EMAIL PROTECTED]: Sorry, but documentation on the MySQL C API say nothing about many interesting questions. The one of them: is it safe (or unsafe) to use non-MT client library (libmysqlclient.*, as opposite to the MT-aware libmysqlclient_r.*) for the multithreading

Re: MySQL C API: dedicated per-connections in the mutlithreading program

2006-09-08 Thread Andrew W. Nosenko
On 9/8/06, Philippe Poelvoorde [EMAIL PROTECTED] wrote: 2006/9/8, Andrew W. Nosenko [EMAIL PROTECTED]: Sorry, but documentation on the MySQL C API say nothing about many interesting questions. The one of them: is it safe (or unsafe) to use non-MT client library (libmysqlclient

How to call stored procedures using C API

2006-08-21 Thread Gelu Gogancea
whith the handling store procedures using MySQL C API, to give me a solution. I use mysql-5.0.2x on Fedora 5. Thank you, -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: How to call stored procedures using C API

2006-08-21 Thread Gelu Gogancea
Hi again folks, The problem is solved.Was entirely my fault because i didn't check the version of mysqlclient library. -Original Message- From: Gelu Gogancea Sent: Monday, 21 August, 2006 12:47 PM To: mysql@lists.mysql.com Subject: How to call stored procedures using C API Hi to all

NDB API Guide

2006-07-05 Thread Stefan Hinz
Here's some information that's probably interesting for you if you're interested in MySQL Cluster ... As part of the effort of making MySQL Cluster a more mainstream product, it's been on our agenda for a very long time to rewrite the NDB API documentation so that it becomes usable by mere

Re: NDB API Guide

2006-07-05 Thread Barry
Stefan Hinz schrieb: Here's some information that's probably interesting for you if you're interested in MySQL Cluster ... As part of the effort of making MySQL Cluster a more mainstream product, it's been on our agenda for a very long time to rewrite the NDB API documentation so

FW: Mysql C API character set

2006-04-12 Thread He, Gang
From: He, Gang Sent: Wednesday, April 12, 2006 8:43 PM To: '[EMAIL PROTECTED]' Subject: Mysql C API character set Hi, I install MySQL server 4.1.12 in Redhat Linux in Japanese environment ( env LANG=ja_JP.UTF-8 ), I setup MySQL server utf8

C API Prepared Statement Data types with unsigned int

2006-03-29 Thread 古雷
mysql desc MSGDB_20060330; +---+-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | +---+-+--+-+-+---+ | CREATETIME| char(14)| NO | |

Re: insert my_ulonglong data with C API

2006-03-15 Thread 古雷
Subject: Re: insert my_ulonglong data with C API In the last episode (Mar 15), said: Hello,everyone! My table has a bigint column which needs store 8bytes integer. I looked up in Mysql Menual. It seems that , if I use C API I can only use preapared statement functions to insert bigint

Re: insert my_ulonglong data with C API

2006-03-15 Thread Pooly
Hi, 2006/3/15, 古雷 [EMAIL PROTECTED]: Thanks a lot! But my test is not successful. Please help me. This is my test code: #ifdef WIN32 #include windows.h #endif #include mysql.h #include stdio.h main() { union ull { unsigned char a[8]; my_ulonglong id; } ull; for(int

Re: insert my_ulonglong data with C API

2006-03-15 Thread Dan Nelson
In the last episode (Mar 15), ?? said: Thanks a lot! But my test is not successful. Please help me. This is my test code: #ifdef WIN32 #include windows.h #endif #include mysql.h #include stdio.h main() { union ull { unsigned char a[8]; my_ulonglong id; } ull; for(int

Re: insert my_ulonglong data with C API

2006-03-15 Thread 古雷
: Re: insert my_ulonglong data with C API In the last episode (Mar 15), ?? said: Thanks a lot! But my test is not successful. Please help me. This is my test code: #ifdef WIN32 #include windows.h #endif #include mysql.h #include stdio.h main() { union ull { unsigned char a[8

insert my_ulonglong data with C API

2006-03-14 Thread 古雷
Hello,everyone! My table has a bigint column which needs store 8bytes integer. I looked up in Mysql Menual. It seems that , if I use C API I can only use preapared statement functions to insert bigint values. I can not use mysql_real_query or mysql_query to insert bigint values because I do

Re: insert my_ulonglong data with C API

2006-03-14 Thread Dan Nelson
In the last episode (Mar 15), said: Hello,everyone! My table has a bigint column which needs store 8bytes integer. I looked up in Mysql Menual. It seems that , if I use C API I can only use preapared statement functions to insert bigint values. I can not use mysql_real_query

Simple libmysql C API tutorial needed

2006-02-28 Thread Dirk
Hi! I already wrote a wrapper for unixodbc... Now I would like to skip odbc and connect to mysql directly... AFAIK that is done using libmysql, right? I looked at the www.mysql.com buzzword-bloat for 15 seconds before I decided to subscribe here and just ask instead (I'm one of those

MySQL C API: binding parameters to prepared statements

2006-02-09 Thread Kish Shen
Hi, I am trying to convert a Oracle 7 interface (from our Constraint Logic Programming Platform ECLiPSe) to MySQL. [I guess I should also say that I don't really have any experience with programming any database API previously, so please excuse me if this seems to be a basic question

C API - mysql_fetch_fields()

2006-01-12 Thread Dave Weingart
in the source code is fields = mysql_fetch_fields(res); where fields is defined as MYSQL_FIELD *fields; Can anyone with more familiarity with the C API internals tell me whether or not mysql_fetch_fields() allocates space for the pointer it returns? This hasn't been an issue in any other

Re: How to call C API functions from MS Access ?

2005-10-03 Thread SGreen
C.R. Vegelin [EMAIL PROTECTED] wrote on 10/01/2005 03:51:41 AM: Hi List, I want to call the C API functions from Visual Basic in MS Access 2003. I assume that I have to use: c:\Program Files\MySQL\MySQL Server 4. 1\Bin\LibMySQL.dll. In my code at module level I have included various code

Re: How to call C API functions from MS Access ?

2005-10-03 Thread C.R. Vegelin
to call C API functions from MS Access ? C.R. Vegelin [EMAIL PROTECTED] wrote on 10/01/2005 03:51:41 AM: Hi List, I want to call the C API functions from Visual Basic in MS Access 2003. I assume that I have to use: c:\Program Files\MySQL\MySQL Server 4. 1\Bin\LibMySQL.dll. In my code at module level

How to call C API functions from MS Access ?

2005-10-01 Thread C.R. Vegelin
Hi List, I want to call the C API functions from Visual Basic in MS Access 2003. I assume that I have to use: c:\Program Files\MySQL\MySQL Server 4.1\Bin\LibMySQL.dll. In my code at module level I have included various code lines to declare entry-points, such as: Declare Function mysql_info Lib

Re: C API - Language Setup and MyISAM table setup

2005-08-22 Thread Warren Young
Fábio Emilio Costa wrote: I'm working in a project in C++ using MySQL C API (Win98/Dev-C++ 4.9.9.8/MySQL DevPak/MySQL 4.1.13) and I want to know if it's possible to setup the server environment language (--language) via mysql_options() function. It seems that you are actually asking whether

C API - Language Setup and MyISAM table setup

2005-08-19 Thread Fábio Emilio Costa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! I'm working in a project in C++ using MySQL C API (Win98/Dev-C++ 4.9.9.8/MySQL DevPak/MySQL 4.1.13) and I want to know if it's possible to setup the server environment language (--language) via mysql_options() function. Also, I want to know

mysql_hex_string() c-api

2005-08-16 Thread Danny Stolle
Hello all, can somebody explain to me the c-api mysql_hex_string(). when i debug my example in DDD i get the full sql-dml (insert) as a hex-value; which this function returns. putting a 0x in front of the hex and use it in a mysql_real_query() returns an error. or am i doing it wrong! should

Re: mysql_hex_string() c-api

2005-08-16 Thread Paul DuBois
At 19:43 +0200 8/16/05, Danny Stolle wrote: Hello all, can somebody explain to me the c-api mysql_hex_string(). when i debug my example in DDD i get the full sql-dml (insert) as a hex-value; which this function returns. putting a 0x in front of the hex and use it in a mysql_real_query

Re: mysql_hex_string() c-api

2005-08-16 Thread Danny Stolle
I thought it was something like that ... I just found it strange allready. I'll give it a try, thanx. Danny Paul DuBois wrote: At 19:43 +0200 8/16/05, Danny Stolle wrote: Hello all, can somebody explain to me the c-api mysql_hex_string(). when i debug my example in DDD i get the full sql

Re: MySQL C API Version incompatibility

2005-08-11 Thread Warren Young
Sujay Koduri wrote: I was connecting to MySQL 5.0.4 through the C API and it was workign fine. But when I downgraded to MYSQL 4.1.13, the same code is giving the following error. Try rebuilding your program against the v4.1 APIs. -- MySQL General Mailing List For list archives: http

MySQL C API Version incompatibility

2005-08-10 Thread Sujay Koduri
hi, I was connecting to MySQL 5.0.4 through the C API and it was workign fine. But when I downgraded to MYSQL 4.1.13, the same code is giving the following error. mysql_stmt_bind_result() failed Using unsupported buffer type: 0 (parameter: 1) I tried uninstalling all the existing mysql

Problem with C API

2005-07-26 Thread picoman
Hi all, i try to use the C API but i get a segmentation fault... my code looks like : MYSQL mysql; if( ! mysql_init(mysql) ) exit(0); if( ! mysql_real_connect(mysql,localhost,user,xxx,,3306,NULL,0) ) exit(0); if( mysql_select_db(mysql, nomBdd) != 0 ) exit(0); mysql_query(mysql,SELECT

Re: Problem with C API

2005-07-26 Thread picoman
Sorry to disturb you, i have resolved my problem by using other mysql headers! Selon [EMAIL PROTECTED]: Hi all, i try to use the C API but i get a segmentation fault... my code looks like : MYSQL mysql; if( ! mysql_init(mysql) ) exit(0); if( ! mysql_real_connect(mysql,localhost

unicode and C API

2005-05-24 Thread Patrice Serrand
Hello, I have an InnoDB table running on MySQL 4.1.11 The MySQL server configuration use : default-character-set=utf8 I have a table unicode_tbl with 'default charset set utf8' and a field szWord varchar(50) character set utf8 collate utf8_general_ci. if I use the C API like

Re: unicode and C API

2005-05-24 Thread Warren Young
that string is probably already in UTF-8 form, if your text editor is UTF-8 aware. The common Unix text editors are, as is the editor in the Visual Studio IDE. I've done very similar things with MySQL++, the C++ wrapper for the C API, which I maintain. http://tangentsoft.net/mysql++/ No _utf8 stuff

C API : Problem using multi-statements

2005-05-06 Thread ganjineh
Hello, I have some problems using multiple queries in a databased driven project, therefore I wrote a little testprogram which causes the same problems. I am using the C-API of MySQL 4.1.11 on a Gentoo Linux 3.3.2-r5, propolice-3.3-7 with 2.4.27 kernel. I connect to the server (on localhost

Re: C API : Problem using multi-statements

2005-05-06 Thread Jeremiah Gowdy
Answer is simple. Can't do that. - Original Message - From: [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Friday, May 06, 2005 5:40 AM Subject: C API : Problem using multi-statements Hello, I have some problems using multiple queries in a databased driven project, therefore I wrote

RE: C API : Problem using multi-statements

2005-05-06 Thread Reggie Burnett
Jeremiah I don't use the client library in my work but this should work from 4.1 on. -Reggie -Original Message- From: Jeremiah Gowdy [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 11:19 AM To: [EMAIL PROTECTED]; mysql@lists.mysql.com Subject: Re: C API : Problem using

RE: C API : Problem using multi-statements

2005-05-06 Thread Javier Diaz
: Re: C API : Problem using multi-statements Answer is simple. Can't do that. - Original Message - From: [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Friday, May 06, 2005 5:40 AM Subject: C API : Problem using multi-statements Hello, I have some problems using multiple queries

Re: C API : Problem using multi-statements

2005-05-06 Thread Jeremiah Gowdy
doh! need another redbull. :) - Original Message - From: Reggie Burnett [EMAIL PROTECTED] To: 'Jeremiah Gowdy' [EMAIL PROTECTED]; [EMAIL PROTECTED]; mysql@lists.mysql.com Sent: Friday, May 06, 2005 9:31 AM Subject: RE: C API : Problem using multi-statements Jeremiah I don't use

Re: C API: Storing is easy; How do you retrieve?

2005-05-03 Thread Philippe Poelvoorde
Matthew Boehm wrote: Hey guys, (Why is there no C API specific list?) I want to write a C application that can take some audio file, store it in MySQL, then at a later date/time (upon request) pull from db and write to temporary file to be streamed. I've got the storing portion of the code down

C API: Storing is easy; How do you retrieve?

2005-05-01 Thread Matthew Boehm
Hey guys, (Why is there no C API specific list?) I want to write a C application that can take some audio file, store it in MySQL, then at a later date/time (upon request) pull from db and write to temporary file to be streamed. I've got the storing portion of the code down. The problem I have

Re: C API: Storing is easy; How do you retrieve?

2005-05-01 Thread Karam Chand
The docs should have it. Basically these API is what you require (in order): mysql_init(); mysql_real_connect(); mysql_real_query(); mysql_store_result() or mysql_use_result(); mysql_fetch_row(); mysql_free_result; mysql_close (); HTH --- Matthew Boehm [EMAIL PROTECTED] wrote: Hey guys

MySQL C API problems

2005-03-25 Thread Andrew Prock
I'm having some difficulty with a program I wrote which uses the MySQL C api. I'm trying to migrate my server from version 4.0 to version 4.1. I have no difficulty connecting to the server using the mysql.exe command line utility, but when I try to connect from my program using the same

Re: MySQL C API problems

2005-03-25 Thread Michael Stassen
the 4.1 client library. Michael Andrew Prock wrote: I'm having some difficulty with a program I wrote which uses the MySQL C api. I'm trying to migrate my server from version 4.0 to version 4.1. I have no difficulty connecting to the server using the mysql.exe command line utility, but when I try

Re: MySQL C API problems

2005-03-25 Thread Andrew Prock
just connecting through the API which is giving me problems. I can connect to the 4.1.1 server with the mysql CLI, but only the 4.0 server with the API. I did have to make one minor change to the code to get it to recompile. Is there some other API issue which I need to be aware of? The code I

Re: MySQL C API problems

2005-03-25 Thread Andrew Prock
On Fri, 25 Mar 2005, Andrew Prock wrote: On Fri, 25 Mar 2005, Michael Stassen wrote: Password hashing was changed in 4.1 to improve authentication security, but this complicates backward compatibility. See the manual for details: http://dev.mysql.com/doc/mysql/en/old-client.html

API

2005-03-24 Thread Lily Wei
Is there a way to use MySQL API that established ODBC calls without going through ODBC driver? Is it even possible? Thanks, Lily

Re: API

2005-03-24 Thread SGreen
Lily Wei [EMAIL PROTECTED] wrote on 03/24/2005 03:08:28 PM: Is there a way to use MySQL API that established ODBC calls without going through ODBC driver? Is it even possible? Thanks, Lily There is a non-ODBC API (written in C) that comes pre-packaged with your MySQL

Where can I download The MySQL C API??

2005-01-25 Thread Shuva, Judith
Hi, I just downloaded mysql-essential-4.1.9-win32.msi, and as I understood, the C API supposes to be in here. Where exactly? I can't find it Thanks, __ Judith Shuva

RE: Where can I download The MySQL C API??

2005-01-25 Thread J.R. Bullington
http://dev.mysql.com/downloads/ Please note the section of Official APIs # Application Programming Interfaces (APIs) * Official APIs: o The C API is included with the server, above. J.R. -Original Message- From: Shuva, Judith [mailto:[EMAIL PROTECTED] Sent: Tuesday

RE: Where can I download The MySQL C API??

2005-01-25 Thread Shuva, Judith
Hi J.R. Thanks for your answer. I saw that the API suppose to be in the MySQL server, so I downloaded mysql-essential-4.1.9-win32.msi, but after the installation, I can't find the API in the MySQL folder... Please, HELP! Thanks, Judith -Original Message- From: J.R

FW: Where can I download The MySQL C API??

2005-01-25 Thread J.R. Bullington
Here's a little more info for you. http://dev.mysql.com/doc/mysql/en/c.html J.R. -Original Message- From: Shuva, Judith [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 9:08 AM To: mysql@lists.mysql.com; J.R. Bullington Subject: RE: Where can I download The MySQL C API?? Hi

RE: Where can I download The MySQL C API??

2005-01-25 Thread Karam Chand
I am not sure what you mean by getting MySQL C API. The API are built in libmysql.lib and libmysql.dll or mysqlclient.lib. The header files are in include directory. Just include them in your project and start coding. Hope I was of help. Karam --- Shuva, Judith [EMAIL PROTECTED] wrote: Hi

RE: Where can I download The MySQL C API??

2005-01-25 Thread Ian Gibbons
On 25 Jan 2005 at 16:07, Shuva, Judith wrote: Hi J.R. Thanks for your answer. I saw that the API suppose to be in the MySQL server, so I downloaded mysql-essential-4.1.9-win32.msi, but after the installation, I can't find the API in the MySQL folder... Please, HELP! Hi, The MySQL

  1   2   3   4   5   6   7   8   >