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

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#849 closed new feature (wontfix)

jDbResultSet additional $fetchMode: FETCH_ASSOC, FETCH_ARRAY, FETCH_VALUES

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


Should be great these fetch functions, or similar methods:

FETCH_ASSOC: fetch the first row into an associative array. fetch() returns this array, FETCH_ARRAY: fetch result into associative arrays. fetch() returns each array. FETCH_VALUES: fetch only one ($fetchModeParam) field's values into a numbered array. fetch() returns the values.

Change History (3)

comment:1 Changed 13 years ago by laurentj

  • Resolution set to wontfix
  • Severity changed from major to minor
  • Status changed from new to closed

We want Jelix fully object. With these flags, you break this rule.

comment:2 Changed 13 years ago by laurentj

In fact, I don't see a use case where an array is better than an object....

comment:3 Changed 13 years ago by dsdenes

Yes, in the case of FETCH_ASSOC and FETCH_ARRAY the only reason is the easier using with existing business classes. But FETCH_VALUES should give a better prepared format, what you have to do with the datas also in the case of objects.

Note: See TracTickets for help on using tickets.