GithubHelp home page GithubHelp logo

Comments (2)

SumoLion avatar SumoLion commented on July 19, 2024

Hello @david-garcia-garcia

I don't think this is a mistake in the documentation, nor a bug in the PDO driver. When you call Prepare with the ATTR_EMULATE_PREPARES flag set to true, you are explicitly bypassing the driver's call through to the server to actually prepare the statement. The line before the beginning of your quote from the docs:"If your PHP application must use parameters in a Transact-SQL clause that will generate an error on the server, you can set the PDO::ATTR_EMULATE_PREPARES attribute to true. ". The reason you might choose to set emulate prepares attribute is to allow your application to dynamically alter parts of a SQL statement that the server does not support parameterizing, and therefore can't prepare. What the note is warning you about is that, as in any dynamically generated SQL statement, your application needs to ensure that the strings you are using to construct it are clean.

from msphpsql.

david-garcia-garcia avatar david-garcia-garcia commented on July 19, 2024

Thanks for the quick reply, I'll share this feedback with the people involved in the issue.

from msphpsql.

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.