com.backnd.database 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/QueryBuilder.cs +6 -4
  2. package/package.json +1 -1
package/QueryBuilder.cs CHANGED
@@ -1008,10 +1008,12 @@ namespace BACKND.Database
1008
1008
  if (result?.Data != null && result.Data.Count > 0)
1009
1009
  {
1010
1010
  var firstRow = result.Data[0];
1011
- if (firstRow.ContainsKey("count(1)"))
1012
- return Convert.ToInt32(firstRow["count(1)"]);
1013
- if (firstRow.ContainsKey("COUNT(1)"))
1014
- return Convert.ToInt32(firstRow["COUNT(1)"]);
1011
+ if (firstRow.Count > 0)
1012
+ {
1013
+ var enumerator = firstRow.GetEnumerator();
1014
+ enumerator.MoveNext();
1015
+ return Convert.ToInt32(enumerator.Current.Value);
1016
+ }
1015
1017
  }
1016
1018
 
1017
1019
  return 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.backnd.database",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "displayName": "BACKND Database",
5
5
  "description": "BACKND Database is a Unity SDK for seamless integration with BACKND cloud database services.\n\nEasily manage and synchronize game data such as player profiles, game states, and leaderboards across multiple platforms.\nIdeal for Unity developers looking to implement robust database solutions without complex backend setups.",
6
6
  "unity": "2021.3",