Error de sqllite 3 al hacer un select.

Events happening in the community are now at Drupal community events on www.drupal.org.
oskar_calvo's picture

Esto es lo que me gruñe.

Esta sencilla query que quiero que me recuperé todos los tid que tienen como padre al tid 2 me gruñe, y no termino de ver porque.

$result = db_select('taxonomy_term_hierarchy','tid')
->fields('tid')
->condition('parent','2')
->execute()
->fetchAll();

El error. Notice: Undefined index: args in DatabaseLog->findCaller() (line 154 of /var/www/gcms/includes/database/log.inc).

Tambien he probado con

$parent=2;
$result = db_query('SELECT tth.tid FROM {taxonomy_term_hierarchy} tth WHERE parent = :parent', array(':parent' => $parent,));
$record = $result->fetchAll();

Y me sigue devolviendo lo mismo.

Notice: Undefined index: args in DatabaseLog->findCaller() (line 154 of /var/www/gcms/includes/database/log.inc).

No utilizo: taxonomy_get_tree() porque en la query luego quiero meter un where tid != $tid.

Oskar

Madrid

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: