diff options
author | David Rothstein <drothstein@gmail.com> | 2012-07-29 23:35:26 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-07-29 23:35:26 -0400 |
commit | 55fbef328f95e0a8dfff0a459c0bf9d24601a11a (patch) | |
tree | c9d0fe6c1f2df04760650508c75f81c91214609f /modules/field/tests | |
parent | 99b25143b23cc72b9f1650b11406a07d96b034e9 (diff) | |
download | brdo-55fbef328f95e0a8dfff0a459c0bf9d24601a11a.tar.gz brdo-55fbef328f95e0a8dfff0a459c0bf9d24601a11a.tar.bz2 |
Issue #1325628 by damien_vancouver, xjm, Damien Tournoud, TravisCarden | jbova: Fixed EntityFieldQuery::propertyQuery missing fully qualified column names causes ambiguous column DB error.
Diffstat (limited to 'modules/field/tests')
-rw-r--r-- | modules/field/tests/field_test.module | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/field/tests/field_test.module b/modules/field/tests/field_test.module index 0015cd905..37ea7b1dd 100644 --- a/modules/field/tests/field_test.module +++ b/modules/field/tests/field_test.module @@ -259,3 +259,14 @@ function field_test_field_widget_form_alter(&$element, &$form_state, $context) { break; } } + +/** + * Implements hook_query_TAG_alter() for tag 'efq_table_prefixing_test'. + * + * @see EntityFieldQueryTestCase::testTablePrefixing() + */ +function field_test_query_efq_table_prefixing_test_alter(&$query) { + // Add an additional join onto the entity base table. This will cause an + // exception if the EFQ does not properly prefix the base table. + $query->join('test_entity','te2','%alias.ftid = test_entity.ftid'); +} |