left join when counting parent's children
This commit is contained in:
BIN
server/ctrlsubsonic/testdata/db
vendored
BIN
server/ctrlsubsonic/testdata/db
vendored
Binary file not shown.
@@ -17,6 +17,17 @@
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "19",
|
||||
"coverArt": "19",
|
||||
"artist": "Ten Years After",
|
||||
"title": "(1967) Ten Years After",
|
||||
"parent": "18",
|
||||
"isDir": true,
|
||||
"songCount": 15,
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "8",
|
||||
"coverArt": "8",
|
||||
@@ -28,6 +39,17 @@
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "5",
|
||||
"coverArt": "5",
|
||||
"artist": "A Certain Ratio",
|
||||
"title": "(1994) The Graveyard and the Ballroom",
|
||||
"parent": "4",
|
||||
"isDir": true,
|
||||
"songCount": 14,
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "16",
|
||||
"coverArt": "16",
|
||||
@@ -51,13 +73,13 @@
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "9",
|
||||
"coverArt": "9",
|
||||
"artist": "13th Floor Lowervators",
|
||||
"title": "(1966) The Psychedelic Sounds of the 13th Floor Elevators",
|
||||
"parent": "7",
|
||||
"id": "21",
|
||||
"coverArt": "21",
|
||||
"artist": "Captain Beefheart",
|
||||
"title": "(1970) Lick My Decals Off, Bitch",
|
||||
"parent": "20",
|
||||
"isDir": true,
|
||||
"songCount": 21,
|
||||
"songCount": 15,
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
@@ -72,39 +94,6 @@
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "5",
|
||||
"coverArt": "5",
|
||||
"artist": "A Certain Ratio",
|
||||
"title": "(1994) The Graveyard and the Ballroom",
|
||||
"parent": "4",
|
||||
"isDir": true,
|
||||
"songCount": 14,
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "19",
|
||||
"coverArt": "19",
|
||||
"artist": "Ten Years After",
|
||||
"title": "(1967) Ten Years After",
|
||||
"parent": "18",
|
||||
"isDir": true,
|
||||
"songCount": 15,
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "21",
|
||||
"coverArt": "21",
|
||||
"artist": "Captain Beefheart",
|
||||
"title": "(1970) Lick My Decals Off, Bitch",
|
||||
"parent": "20",
|
||||
"isDir": true,
|
||||
"songCount": 15,
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "6",
|
||||
"artist": "A Certain Ratio",
|
||||
@@ -114,6 +103,17 @@
|
||||
"songCount": 9,
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "9",
|
||||
"coverArt": "9",
|
||||
"artist": "13th Floor Lowervators",
|
||||
"title": "(1966) The Psychedelic Sounds of the 13th Floor Elevators",
|
||||
"parent": "7",
|
||||
"isDir": true,
|
||||
"songCount": 21,
|
||||
"duration": 0,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -7,20 +7,11 @@
|
||||
"albumList2": {
|
||||
"album": [
|
||||
{
|
||||
"id": "21",
|
||||
"coverArt": "21",
|
||||
"artistId": "7",
|
||||
"artist": "Captain Beefheart & His Magic Band",
|
||||
"name": "Lick My Decals Off, Baby",
|
||||
"songCount": 15,
|
||||
"duration": 0,
|
||||
"created": "2019-06-10T19:26:30.944742894+01:00"
|
||||
},
|
||||
{
|
||||
"id": "6",
|
||||
"artistId": "2",
|
||||
"artist": "A Certain Ratio",
|
||||
"name": "To Each...",
|
||||
"id": "13",
|
||||
"coverArt": "13",
|
||||
"artistId": "4",
|
||||
"artist": "Anikas",
|
||||
"name": "Anika",
|
||||
"songCount": 9,
|
||||
"duration": 0,
|
||||
"created": "2019-05-23T15:12:02.921473302+01:00"
|
||||
@@ -35,26 +26,6 @@
|
||||
"duration": 0,
|
||||
"created": "2019-04-30T16:48:48+01:00"
|
||||
},
|
||||
{
|
||||
"id": "3",
|
||||
"coverArt": "3",
|
||||
"artistId": "1",
|
||||
"artist": "Jah Wobble, The Edge & Holger Czukay",
|
||||
"name": "Snake Charmer",
|
||||
"songCount": 5,
|
||||
"duration": 0,
|
||||
"created": "2019-05-16T22:10:52+01:00"
|
||||
},
|
||||
{
|
||||
"id": "13",
|
||||
"coverArt": "13",
|
||||
"artistId": "4",
|
||||
"artist": "Anikas",
|
||||
"name": "Anika",
|
||||
"songCount": 9,
|
||||
"duration": 0,
|
||||
"created": "2019-05-23T15:12:02.921473302+01:00"
|
||||
},
|
||||
{
|
||||
"id": "8",
|
||||
"coverArt": "8",
|
||||
@@ -75,6 +46,25 @@
|
||||
"duration": 0,
|
||||
"created": "2019-06-13T12:57:24.306717554+01:00"
|
||||
},
|
||||
{
|
||||
"id": "6",
|
||||
"artistId": "2",
|
||||
"artist": "A Certain Ratio",
|
||||
"name": "To Each...",
|
||||
"songCount": 9,
|
||||
"duration": 0,
|
||||
"created": "2019-05-23T15:12:02.921473302+01:00"
|
||||
},
|
||||
{
|
||||
"id": "3",
|
||||
"coverArt": "3",
|
||||
"artistId": "1",
|
||||
"artist": "Jah Wobble, The Edge & Holger Czukay",
|
||||
"name": "Snake Charmer",
|
||||
"songCount": 5,
|
||||
"duration": 0,
|
||||
"created": "2019-05-16T22:10:52+01:00"
|
||||
},
|
||||
{
|
||||
"id": "5",
|
||||
"coverArt": "5",
|
||||
@@ -85,16 +75,6 @@
|
||||
"duration": 0,
|
||||
"created": "2019-06-05T17:46:37.675917974+01:00"
|
||||
},
|
||||
{
|
||||
"id": "16",
|
||||
"coverArt": "16",
|
||||
"artistId": "5",
|
||||
"artist": "Swell Maps",
|
||||
"name": "Jane From Occupied Europe",
|
||||
"songCount": 16,
|
||||
"duration": 0,
|
||||
"created": "2019-04-30T16:48:48+01:00"
|
||||
},
|
||||
{
|
||||
"id": "19",
|
||||
"coverArt": "19",
|
||||
@@ -104,6 +84,26 @@
|
||||
"songCount": 15,
|
||||
"duration": 0,
|
||||
"created": "2019-04-30T16:48:30+01:00"
|
||||
},
|
||||
{
|
||||
"id": "21",
|
||||
"coverArt": "21",
|
||||
"artistId": "7",
|
||||
"artist": "Captain Beefheart & His Magic Band",
|
||||
"name": "Lick My Decals Off, Baby",
|
||||
"songCount": 15,
|
||||
"duration": 0,
|
||||
"created": "2019-06-10T19:26:30.944742894+01:00"
|
||||
},
|
||||
{
|
||||
"id": "16",
|
||||
"coverArt": "16",
|
||||
"artistId": "5",
|
||||
"artist": "Swell Maps",
|
||||
"name": "Jane From Occupied Europe",
|
||||
"songCount": 16,
|
||||
"duration": 0,
|
||||
"created": "2019-04-30T16:48:48+01:00"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user