Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1523

Grouping broken in version 2.5, had to rollback upgrade

$
0
0

@jps wrote:

Grouping used to work in previous versions, but it's broken in version 2.5. Managed to reproduce this on a clean Bitnami image by creating a simple table "test" in MySQL with two columns: id and test_name.

When trying to get records, grouped by test_name using this:
https://<host_name>/api/v2/mysql/_table/test?fields=test_name&group=test_name
I now get this result:

{
  "error": {
    "code": 500,
    "context": null,
    "message": "Failed to retrieve records from 'test'.\nstrpos() expects parameter 1 to be string, array given",
    "trace": [
      "0 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-database/src/Resources/BaseDbTableResource.php(460): DreamFactory\\Core\\SqlDb\\Resources\\Table->retrieveRecordsByFilter('test', NULL, Array, Array)",

The problem appears whenever I add the "group" parameter.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles