Skip to content

Commit

Permalink
Remove foundationdb from tests all script because it is not downloada…
Browse files Browse the repository at this point in the history
…ble from offical site
  • Loading branch information
jinzhu committed Apr 17, 2015
1 parent 0e2cd44 commit 4fbc9d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@ func (s *DB) Rows() (*sql.Rows, error) {
}

func (s *DB) Scan(dest interface{}) *DB {
scope := s.clone().NewScope(s.Value).InstanceSet("gorm:query_destination", dest)
Query(scope)
return scope.db
return s.clone().NewScope(s.Value).InstanceSet("gorm:query_destination", dest).callCallbacks(s.parent.callback.queries).db
}

func (s *DB) FirstOrInit(out interface{}, where ...interface{}) *DB {
Expand Down
2 changes: 1 addition & 1 deletion test_all.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dialects=("postgres" "foundation" "mysql" "sqlite")
dialects=("postgres" "mysql" "sqlite")

for dialect in "${dialects[@]}" ; do
GORM_DIALECT=${dialect} go test
Expand Down

0 comments on commit 4fbc9d2

Please sign in to comment.