Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3001

Date and string values in insert statement are between double quotes (" ")

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.2
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
    • Environment:
      Windows 2012 Server, MS SQL 2012, IBM Server

      Description

      While flushing the entity manager, the sql queries generated for INSERT puts the date and string values inside double quotes and the following error is displayed:
      SQLSTATE [21S01, 213]: [Microsoft][SQL Server Native Client 11.0][SQL Server]Column name or number of supplied values does not match table definition.
      When I copy the statement and replace the double quotes to single quotes, the query is run.

        Activity

        Hide
        Marco Pivetta added a comment -

        puspadhar das can you provide the SQL query that is being attempted, your fixed version as well as the call to DBAL (or ORM) that is causing this problem?

        Show
        Marco Pivetta added a comment - puspadhar das can you provide the SQL query that is being attempted, your fixed version as well as the call to DBAL (or ORM) that is causing this problem?

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            puspadhar das
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: