Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

We've recently upgraded to Sybperl-2.18 (the Sybperl module not the DBlib or CTlib modules) after having used an earlier version for many years now. We're experiencing a problem we didn't have under the old version and I'm hoping it can be solved simply with a configuration setting (although I'm not seeing anything in the documentation which sounds like the appropriate option) nor on this site although my search arguments may not reflect those found in a pertinent article.

We have quite a few perl scripts which feed a SQL string to &dbsqlexec which do the following:

1. Select rows from a permanent table into a temporary table:

select * into <i>#temporarytablename</i> from <i>permanenttablename</i>
2. Then select rows out of the temporary table:
select * from <i>#temporarytablename</i>
This is all within the same SQL string fed to &dbsqlexec and all within the same connection. What happens is we get no rows returned from the temporary table nor do we get any error message.

This doesn't happen under the earlier version of Sybperl. If we change the temporary table to a permanent table it works perfectly (but this is not an option for us). If we execute the code with the temporary table references under iSql or via SQLAdvantage it works fine so it definitely seems to be the new version of Sybperl (or it's configuration) which is the problem.

Any assistance you can offer would be greatly appreciated.

Redwing

In reply to Sybperl 2.18 and temporary tables by Redwing

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-28 17:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found