developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

#839 closed bug (fixed)

jPDOConnection : utilisation de FETCH_INTO retourne une erreur

Reported by: thomas Owned by: laurentj
Priority: normal Milestone: Jelix 1.0.8
Component: jelix:db Version: 1.1
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

Lorsque jDao utilise le mode FETCH_INTO, PDO me renvoi l'erreur :

SQLSTATE[]: <<Unknown error>>

Change History (5)

comment:1 Changed 12 years ago by thomas

Je pense avoir trouver d'où vient le problème. Dans le méthode query de jPDOConnection le troisième paramètre qui correspond à l'objet à modifier n'est pas passé à PDO:

ligne 131: return parent::query($args[0], $args[1]);

Si on rajoute $args[2] en troisième paramètre çà passe.

comment:2 Changed 12 years ago by laurentj

  • Milestone set to Jelix 1.1.1

comment:3 Changed 12 years ago by laurentj

  • review set to review+

comment:4 Changed 12 years ago by laurentj

  • Owner set to laurentj
  • Status changed from new to assigned

comment:5 Changed 12 years ago by laurentj

  • Milestone changed from Jelix 1.1.1 to Jelix 1.0.8
  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in the branch 1.1.X, 1.0.x and in the trunk

r1324

Thanks for your fix.

Note: See TracTickets for help on using tickets.