Merge pull request #354 from Quentin-M/patch-2
Fix NPE in SQL initialization
This commit is contained in:
commit
14a5ccce96
1 changed files with 1 additions and 1 deletions
|
|
@ -64,10 +64,10 @@ func connectSQLTables(addr string, _ graph.Options) (*sql.DB, error) {
|
|||
|
||||
func createSQLTables(addr string, options graph.Options) error {
|
||||
conn, err := connectSQLTables(addr, options)
|
||||
defer conn.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer conn.Close()
|
||||
tx, err := conn.Begin()
|
||||
if err != nil {
|
||||
glog.Errorf("Couldn't begin creation transaction: %s", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue