Menu

multiple results sets & nextset()

Help
2007-02-05
2012-09-19
  • carpetemporem

    carpetemporem - 2007-02-05

    Hi there,

    I'm calling a stored procedure (not with callproc but the "old" way with cursor.execute("call MyProcedure()")) which produces several results sets.

    The number of result sets varies and there can be empty result sets in between.

    Since nextset() always seems to return an empty result set as last set, processing of the result sets is quite tricky (delaying the processing of empty sets until a non-empty set is found or finally nextset() returns None).

    Is there any way to determine how many results sets there are or that it's (not) the fake last result set before calling nextset() once more?

    Thanks,
    Tom

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.