Commit 3700c1a4 authored by Faizal Aziz's avatar Faizal Aziz

fixing constraint name

parent ad905139
......@@ -359,7 +359,7 @@ func generateSQLFromStorage(tableName string, columnAndValues interface{}) strin
argName = val
}
}
argName = fmt.Sprintf("constraint %s_%s", keysName, argName)
argName = fmt.Sprintf("constraint %s_%s", strings.Replace(keysName, " ", "_", 1), argName)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment