Closed (fixed)
Project:
Dynamic Entity Reference
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2020 at 13:09 UTC
Updated:
9 May 2020 at 09:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jibranComment #3
jibranComment #4
jibranComment #5
jibran7.4 and 7.3 fails show that triggers are not set up properly.
Comment #6
daffie commentedI have looked at the patch and I see that you are adding the method escapeField() is a couple of places. What the method returns has changed a little bit in that it return the field name with quotes added to the name (for Drupal 9). Maybe something goes wrong when you create the triggers when the field names are quoted?
Comment #7
jibranWe don't need to add the quotes here so I reverted it.
Comment #8
jibranI found the reason for fails.
\Drupal\Core\Database\Connection::quoteIdentifiers()is stripping out the sqaure breckets from the tiggers REGEX.Comment #10
jibranLet's fix some fail for pgsql and sqlite.
Comment #11
jibranLet's try this.
Comment #12
jibranCreated the helper method.
Comment #13
jibranc/p error.
Comment #14
jibranHopefully, this would be it.
Comment #15
jibranhmmm
Comment #16
daffie commented@jibran: Maybe you did not know that: the difference between SQLite and the other 2 databases is that prefixing works a little bit different. SQLite separates the prefix and the table name with a dot.
Comment #17
jibranLet's try this.
Comment #18
jibranHehe, @daffie yeah, I'm trying to figure it out as I go :D
Comment #20
jibranYay!!! green.
Comment #25
jibranThank you @daffie and @chx for the help.