meadow 2.0.30 → 2.0.31

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meadow",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
4
4
  "description": "A data access library.",
5
5
  "main": "source/Meadow.js",
6
6
  "scripts": {
@@ -183,10 +183,12 @@ var MeadowProvider = function ()
183
183
  tmpPreparedStatement.prepare(tmpQueryBody,
184
184
  (pPrepareError) =>
185
185
  {
186
- // TODO: This will likely blow up the world. It will definitely happen when the schema doesn't generate good constraints from the inputs.
187
186
  if (pPrepareError)
188
187
  {
189
188
  _Fable.log.error(`CREATE Error preparing prepared statement: ${pPrepareError}`, pPrepareError);
189
+ tmpResult.error = pPrepareError;
190
+ tmpResult.executed = true;
191
+ return fCallback();
190
192
  }
191
193
 
192
194
  tmpPreparedStatement.execute(pQuery.query.parameters,
@@ -236,10 +238,12 @@ var MeadowProvider = function ()
236
238
  tmpPreparedStatement.prepare(pQuery.query.body,
237
239
  (pPrepareError) =>
238
240
  {
239
- // TODO: This will likely blow up the world. It will definitely happen when the schema doesn't generate good constraints from the inputs.
240
241
  if (pPrepareError)
241
242
  {
242
243
  _Fable.log.error(`READ Error preparing prepared statement: ${pPrepareError}`, pPrepareError);
244
+ tmpResult.error = pPrepareError;
245
+ tmpResult.executed = true;
246
+ return fCallback();
243
247
  }
244
248
 
245
249
  tmpPreparedStatement.execute(pQuery.query.parameters,
@@ -287,10 +291,12 @@ var MeadowProvider = function ()
287
291
  tmpPreparedStatement.prepare(pQuery.query.body,
288
292
  (pPrepareError) =>
289
293
  {
290
- // TODO: This will likely blow up the world. It will definitely happen when the schema doesn't generate good constraints from the inputs.
291
294
  if (pPrepareError)
292
295
  {
293
296
  _Fable.log.error(`UPDATE Error preparing prepared statement: ${pPrepareError}`, pPrepareError);
297
+ tmpResult.error = pPrepareError;
298
+ tmpResult.executed = true;
299
+ return fCallback();
294
300
  }
295
301
 
296
302
  tmpPreparedStatement.execute(pQuery.query.parameters,
@@ -331,10 +337,12 @@ var MeadowProvider = function ()
331
337
  tmpPreparedStatement.prepare(pQuery.query.body,
332
338
  (pPrepareError) =>
333
339
  {
334
- // TODO: This will likely blow up the world. It will definitely happen when the schema doesn't generate good constraints from the inputs.
335
340
  if (pPrepareError)
336
341
  {
337
342
  _Fable.log.error(`DELETE Error preparing prepared statement: ${pPrepareError}`, pPrepareError);
343
+ tmpResult.error = pPrepareError;
344
+ tmpResult.executed = true;
345
+ return fCallback();
338
346
  }
339
347
 
340
348
  tmpPreparedStatement.execute(pQuery.query.parameters,
@@ -383,10 +391,12 @@ var MeadowProvider = function ()
383
391
  tmpPreparedStatement.prepare(pQuery.query.body,
384
392
  (pPrepareError) =>
385
393
  {
386
- // TODO: This will likely blow up the world. It will definitely happen when the schema doesn't generate good constraints from the inputs.
387
394
  if (pPrepareError)
388
395
  {
389
396
  _Fable.log.error(`UNDELETE Error preparing prepared statement: ${pPrepareError}`, pPrepareError);
397
+ tmpResult.error = pPrepareError;
398
+ tmpResult.executed = true;
399
+ return fCallback();
390
400
  }
391
401
 
392
402
  tmpPreparedStatement.execute(pQuery.query.parameters,
@@ -435,10 +445,12 @@ var MeadowProvider = function ()
435
445
  tmpPreparedStatement.prepare(pQuery.query.body,
436
446
  (pPrepareError) =>
437
447
  {
438
- // TODO: This will likely blow up the world. It will definitely happen when the schema doesn't generate good constraints from the inputs.
439
448
  if (pPrepareError)
440
449
  {
441
450
  _Fable.log.error(`COUNT Error preparing prepared statement: ${pPrepareError}`, pPrepareError);
451
+ tmpResult.error = pPrepareError;
452
+ tmpResult.executed = true;
453
+ return fCallback();
442
454
  }
443
455
 
444
456
  tmpPreparedStatement.execute(pQuery.query.parameters,