473,700 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mysql_query hang's up

Hi,

I have a problem with the c-api function mysql_query.
When I try to send these query "SELECT a FROM b" the function
mysql_query hang's up and the program stops at the codeline. If I kill
the programm, the bash said segmentation fault malloc_consolit at
error.

I have mysql version 4.15

Thanks for your help and sorry for my terrible english,
Gabriel
Nov 13 '05 #1
5 3483
de*********@gmx .de (Gabriel) wrote in
news:41******** *************** ***@posting.goo gle.com:
I have a problem with the c-api function mysql_query.
When I try to send these query "SELECT a FROM b" the function
mysql_query hang's up and the program stops at the codeline. If I kill
the programm, the bash said segmentation fault malloc_consolit at
error.

I have mysql version 4.15


This is not a C question and there is no C language answer. You have mySql
interface question. Since those folks provided the interface, why not try
in a mysql newsgroup like:

de.comp.datenba nken.mysql

--
- Mark ->
--
Nov 13 '05 #2
de*********@gmx .de (Gabriel) wrote:
I have a problem with the c-api function mysql_query.
When I try to send these query "SELECT a FROM b" the function
mysql_query hang's up and the program stops at the codeline. If I kill
the programm, the bash said segmentation fault malloc_consolit at
error.


That sounds like a mysql problem, not a C problem. It's certainly
nothing to do with ISO C. Ask this in a mysql newsgroup.

Richard
Nov 13 '05 #3
This question is beyond the scope of this newsgroup. However, you may want
to post the specific API function calls you are using. I've just recently
started using the MySQL C API and it's pretty straightforward . Post your
code and I'll try to help.
"Gabriel" <de*********@gm x.de> wrote in message
news:41******** *************** ***@posting.goo gle.com...
Hi,

I have a problem with the c-api function mysql_query.
When I try to send these query "SELECT a FROM b" the function
mysql_query hang's up and the program stops at the codeline. If I kill
the programm, the bash said segmentation fault malloc_consolit at
error.

I have mysql version 4.15

Thanks for your help and sorry for my terrible english,
Gabriel

Nov 13 '05 #4
In <bl*********@kc web01.netnews.a tt.com> "Kris Wempa" <calmincents(NO _SPAM)@yahoo.co m> writes:
This question is beyond the scope of this newsgroup. However, you may want
to post the specific API function calls you are using. I've just recently
started using the MySQL C API and it's pretty straightforward . Post your
code and I'll try to help.


If you're aware that the question is beyond the scope of this newsgroup,
why encourage the OP to post his code? The OP, at least, had the excuse
of not realising that he was posting in the wrong newsgroup...

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #5
Okay, okay I try my luke in the de.comp.datenba nken.mysql
news groups.

Thanks,
gabriel
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
15771
by: Bruce A. Julseth | last post by:
I know the following $sql will fail since there is no Customer='Smith'. I want to determine how to test a failure of mysql_query. I thought mysql_query returned false if a query failed. The test fail path is never taken in the following code is never taken. Also, I get an invalid argument on mysql_num_rows($Result) error message. $sql = "Update Table Set Password='password' where Customer='Smith';
5
8779
by: lkrubner | last post by:
www.php.net says: >>>>>>>>>>>> Only for SELECT,SHOW,EXPLAIN or DESCRIBE statements mysql_query() returns a resource identifier or FALSE if the query was not executed correctly. For other type of SQL statements, mysql_query() returns TRUE on success and FALSE on error. A non-FALSE return value means that the query was legal and could be executed by the server. It does not indicate anything about the number of rows affected or returned. It...
6
4667
by: aa | last post by:
I use the following fragment of code to output datf from MySQL: ====================================================== $chan = mysql_connect ($db_host, $username, $password); mysql_select_db ($DB_name, $chan); $resultid = mysql_query ("select name_ru, description_ru, retail, dealer from lasershot WHERE le='1'", $chan); ........ ======================================================
7
3923
by: John Moore | last post by:
Hi I posted three days ago about a function I wrote which kept refusing to run a mysql_query. Well I did away with the function, and hard coded the variables into the query itself. Here's what I have now: mysql_query("UPDATE about SET category_id = 58 WHERE about_id = 5") or die('error: ' . mysql_error());
4
6205
by: Madhu Gopinathan | last post by:
Hi All, I am faced with a horrible hang problem. I have a COM exe server that executes some tasks. The task execution manager is a thread that manages the pool of threads, which is 4 per processor. Each task is processed in a separate thread. Each of the executer threads is an STA thread, and it goes ahead and executes the task. No problems are encountered when tasks are executed one at a time, but when multiple tasks are executed...
1
3336
by: caesarchen | last post by:
Dear all: The following is the situation,can any one share me idea to solve it? Windows 2000 + IIS6.0 + .NET Framework 1.1 6 projects, about 800 webforms and 300 .asmx programs Project cowork with nSheild HSM by writing custom COM+ using CSP CryptoAPI . 1. System will write some log in the candidate web service. 2. ASP.NET hangs.
0
3202
by: Jeff | last post by:
Banging my head against the wall trying to figure this out. I have a 'sometimes' hang while disposing a form which contains an ActiveX control (Flash.ocx version 7). The form's Dispose() method generated by the form designer protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null)
4
5148
by: atyndall | last post by:
OK, this is the relevant portion script: <?php $username = '__'; // MySQL Database Username. $password = '__'; // MySQL Database Password. $server = '__'; // MySQL Database server (most likely localhost).
5
9131
by: lisles | last post by:
i have a page funtion.php which hs the function to connect to the db /* Mysql Connection */ function connect(){ global $db_server,$db_user,$db_pass,$db;//Global Values from the config.php $conn = @mysql_connect($db_server,$db_user,$db_pass) or die("Connection to Database Server Failed"); @mysql_select_db($db) or die("Database Selection Failed"); return $conn; }
0
8639
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9203
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9058
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8952
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8911
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5895
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4649
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.