Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3975582
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:42:08+00:00 2026-05-20T04:42:08+00:00

Using Informix C++ interface, the first query is fine, but the second yields this

  • 0

Using Informix C++ interface, the first query is fine, but the second yields this error

MI_LIB_USAGE: XIX000:-7520:Argument (client library error) is NULL.

My code

// connection okay and open
ITQuery query(conn);  
string qtext;
qtext = "SELECT * FROM transit_kunde_s WHERE erledigt='N'";
okay = query.ExecForIteration(qtext.c_str());
ITRow *row;

while (row = query.NextRow()) {
     // do stuff 

     // now update that row
     qtext = "UPDATE transit_kunde_s SET erledigt='Y' WHERE transitkunde='"+ts+"'";
     code = query.ExecForStatus(qtext.c_str());
     // ERROR
}

Any ideas why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:42:09+00:00Added an answer on May 20, 2026 at 4:42 am

    solution is to use a fresh query object:

    ITQuery query_up(conn);
    code = query_up.ExecForStatus(qtext.c_str());
    

    EDIT: And if one want transaction enabled one has to use a fresh connection! See [http://stackoverflow.com/questions/5095519/how-to-use-transactions-in-informix-csdk]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know something like this can be accomplished easily using PHP or Perl, but
Using this code, the following execution yields strange results: C 100 R W The
Using IBM Informix Dynamic Server Version 10.00.FC9 The error I'm getting is: 1226: Decimal
is there a difference in the Informix query performance using ANSI syntax: SELECT ..
We are using a Java EE application and we are right now using Informix
I'm using an Informix (Version 7.32) DB. On one operation I create a temp
We have an application using the IBM Informix driver. Whenever we try to open
I am using the Informix.NET driver (C#) to insert a row into a database
How can I get the execution plan for a query in Informix? I need
I try to connect to informix server 11.5 using using IBM.Data.Informix (located in C:\Program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.