Comments (3)
The problem appears to be creating the sql
statement outside of the transaction and then running it inside of the transaction. By moving the definition of sql
into the transaction, it completes.
This is still a flaw in drift, the statement should run in the transaction if run
is called in there.
from drift.
The problem appears to be creating the
sql
statement outside of the transaction and then running it inside of the transaction. By moving the definition ofsql
into the transaction, it completes.This is still a flaw in drift, the statement should run in the transaction if
run
is called in there.
I tried it. yes. now it can run.
from drift.
The drift bug has been fixed in 7f7d2ab, so the original snippet will work in the next drift version.
from drift.
Related Issues (20)
- NoSuchMethodError: Class 'GeneratedColumn<int>' has no instance method 'count'. HOT 1
- Don't wrap exceptions in `DriftRemoteException` if not necessary
- "type 'Null' is not a subtype of type 'InterfaceElement' in type cast" during code generation HOT 8
- Provide `Comparable` expressions for postgres types HOT 2
- Usage without Row Models HOT 2
- Error when validating database schema in Flutter DevTools HOT 2
- Very weired query, both true or false can no t be get out HOT 2
- Simple count(*)? HOT 1
- The 'ie' suffix of the DataClass generated when executing build is automatically changed to 'y' HOT 1
- Implement Geopoly Interface HOT 1
- Incorrect Variable Bindings in Postgres Transactions HOT 5
- SqliteException(261): while executing, database is locked, database is locked (code 261) Causing statement: PRAGMA wal_checkpoint(PASSIVE);PRAGMA busy_timeout = 5000;PRAGMA journal_size_limit = 6144000;PRAGMA synchronous = normal;PRAGMA journal_mode = WAL; HOT 3
- `FOREIGN KEY` defined in the `.drift` file, in between the other column line then typed-class not getting generated... HOT 1
- Migration issues with Firefox HOT 1
- Documentation issue: Setup HOT 2
- File table and dart:io File clash HOT 4
- CRASH: Stack dump aborted because GetAndValidateThreadStackBounds failed. HOT 4
- NullAwareTypeConverter not usable from drift files when the column is non-nullable HOT 3
- Error while trying to run dart run moor_generator migrate HOT 4
- SqliteException(1): while preparing statement, near "RETURNING": syntax error, SQL logic error dart test HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drift.