firefly-compiler 0.6.15 → 0.6.16

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.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly compiler",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.6.15",
7
+ "version": "0.6.16",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
package/postgresql/Pg.ff CHANGED
@@ -334,7 +334,7 @@ internalRunStatement(statement: PgStatement, body: Option[PgRow => Bool]): Int {
334
334
  let result = Js.await(statement.connection.grab().jsValue->query(pair.first, parameters))
335
335
  body.{
336
336
  | None =>
337
- result.get("rowCount").grabInt()
337
+ if(!result.get("rowCount").isNullOrUndefined()) {result.get("rowCount").grabInt()} else {-1}
338
338
  | Some(f) =>
339
339
  let all = result.get("rows").grabArray().all {row =>
340
340
  f(PgRow(row))
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly language support",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.6.15",
7
+ "version": "0.6.16",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"