ORM Update – Tablename gets quoted 3 times instead of 1

Home Forums kbmMW ORM Update – Tablename gets quoted 3 times instead of 1

Viewing 5 reply threads
  • Author
    Posts
    • #56899
      mrluigi2017
      Participant

      Hi,

      When I do an ORM.Update I get a dynamic SQL error. In Devart’s DBMonitor tool I see that for some reason the table name in the where clause is quoted 3 times instead of 1:

      UPDATE “Person” SET “FirstName” = :FirstName,”LastName” = :LastName,”Notes” = :Notes WHERE “””Person”””.”PersonID” = :KBMMW_KEY_PersonID

      The strange thing is that when I do:

      Orm.Query<TPerson>([APersonID], mwoqoEQ, FTransaction, []);

      It all works fine.

      Any suggestions what may cause this problem?

      D10.4.2

      KbmMW 5.19.00

      Unidac 9.3.0

      Thanks in advance,

      Luigi

       

       

    • #56923
      kimbomadsen
      Keymaster

      What have you setup the connection pool as?
      And what metadata component are you using with it?

      /Kim

    • #56932
      mrluigi2017
      Participant

      The connection pool is a TkbmMWUNIDACConnectionPool with a kbmMWInterbaseMetaData and a kbmMWInterbaseSQLRewriter.

    • #56933
      mrluigi2017
      Participant

      Message removed.

      • This reply was modified 2 years, 11 months ago by mrluigi2017.
    • #56935
      mrluigi2017
      Participant

      I have written al little test application and I noticed that the tripple quotes only appear when quotes are used when creating tables. Since this is a new project I have decided to use uppercase and no quotes for tables names (and other identifiers).

      • #56939
        kimbomadsen
        Keymaster

        Can you show me a small sample here of how you were creating the tables with quotes, so I get an understanding of if it is something that I need to look into 🙂
        /Kim

    • #57108
      kimbomadsen
      Keymaster

      Hi,

      I have fixed it for next release.

      /Kim

Viewing 5 reply threads
  • You must be logged in to reply to this topic.