Giter Site home page Giter Site logo

Comments (5)

pekim avatar pekim commented on June 19, 2024

I'm quite surprised about this. It should just work. Some of the integration tests use temporary stored procedures, which should be connection-scoped in the same way.

Thanks for the code. I'll look in to this.

from tedious.

jeremyrsellars avatar jeremyrsellars commented on June 19, 2024

I sure appreciate your work on Tedious and this issue. I hope I'm not sending you down a rabbit trail, but it's not working on my machine.

In case this matters, I wasn't able to use NPM to install it, so I downloaded the source as a .zip from github and copied it to my node_modules directory... a few days after you release v4.

Thanks,
Jeremy

-----Original Message-----
From: Mike D Pilsbury [mailto:[email protected]]
Sent: Monday, April 23, 2012 10:52 PM
To: Jeremy R. Sellars
Subject: Re: [tedious] Support for #temp tables across requests with same connection (#24)

I'm quite surprised about this. It should just work. Some of the integration tests use temporary stored procedures, which should be connection-scoped in the same way.

Thanks for the code. I'll look in to this.


Reply to this email directly or view it on GitHub:
#24 (comment)

from tedious.

pekim avatar pekim commented on June 19, 2024

The problem relates to the scoping rules used for temporary tables (http://weblogs.sqlteam.com/mladenp/archive/2006/11/03/17197.aspx). Starting with tedious v0.0.4, the execSql function executes sp_executesql to execute the sql. This is to provide support for parameters.

If execSql is replaced with execSqlBatch then your code works. Because of the scoping rules, only the table creation needs to be changed, although it would do no harm if both calls were changed.

I need to make the documentation for these two function clearer. I also wonder whether the function names are appropriate.

from tedious.

jeremyrsellars avatar jeremyrsellars commented on June 19, 2024

Great that works in my 'real' code, as well. Thanks for your help with this.

  • Jeremy

from tedious.

pekim avatar pekim commented on June 19, 2024

Documentation updated.

from tedious.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.