Skip to content

vladimir-light/vlang_orm_bug_reproduce_repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

In order to repdoruce potential bug with oneToMany/oneToOne in ORM

  1. comment out all init_* functions but not init_teams().
  2. run it ( v -d trace_orm run fixtures.v ) teams table will be created and populated with data.
  3. comment out all init_* functions but not init_predictions_no_orm()
  4. run it again. predictions table will be created and populated with data
  5. now, comment everything but not init_predictions_simplified() and run it -> script panics with "V panic: db.sqlite.SQLError: UNIQUE constraint failed:" while trying to insert into teams instead of inserting into predictions table

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published