Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method not found: 'constructInsertSql' #1

Closed
Ufo28 opened this issue Mar 6, 2015 · 5 comments
Closed

method not found: 'constructInsertSql' #1

Ufo28 opened this issue Mar 6, 2015 · 5 comments

Comments

@Ufo28
Copy link

Ufo28 commented Mar 6, 2015

Testing user model with mysql adapter:
Unhandled exception:
Uncaught Error: Class 'MySQLDBAdapter' has no instance method 'constructInsertSql'.

NoSuchMethodError: method not found: 'constructInsertSql'
Receiver: Instance of 'MySQLDBAdapter'
Arguments: [Instance of 'Insert']
Stack Trace:
#0 Object._noSuchMethod (dart:core-patch/object_patch.dart:42)
#1 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#2 MySQLDBAdapter.insert.<insert_async_body> (package:dart_orm_adapter_mysql/dart_orm_adapter_mysql.dart:163:52)
#3 _asyncCatchHelper. (dart:core-patch/core_patch.dart:11)
#4 _RootZone.runBinary (dart:async/zone.dart:1160)
#5 _Future._propagateToListeners.handleError (dart:async/future_impl.dart:511)
#6 _Future._propagateToListeners (dart:async/future_impl.dart:570)
#7 _Future._completeError (dart:async/future_impl.dart:366)
#8 _Future._asyncCompleteError. (dart:async/future_impl.dart:421)
#9 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
#10 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
#11 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#12 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:143)
#0 _rootHandleUncaughtError. (dart:async/zone.dart:886)
#1 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
#2 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
#3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:143)

@ustims
Copy link
Owner

ustims commented Mar 6, 2015

Thanks, I will check it soon.

@rayokota
Copy link

I think this is a problem with the package at pub.dartlang.org. The package of dart_orm that is labeled as 0.0.12 is actually 0.0.11.

@vgordievskiy
Copy link

Hi all.
class MySQLDBAdapter using "this.constructSelectSql(select);" in method select (line num 109), but SQLAdapter are providing this as static member.

@vgordievskiy
Copy link

and line 163 in method insert - this.constructInsertSql(insert);

@ustims
Copy link
Owner

ustims commented Mar 21, 2015

Hi guys. Sorry for late response.

As @rayokota said, there were some problems with DartORM pub package and its version. I have increased a version to 0.0.13 and it seems that code has been updated. So please try it.

Methods like constructInsertSql should not be static anymore.

@ustims ustims closed this as completed Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants