diff --git a/migration.go b/migration.go index c142328..68e579f 100644 --- a/migration.go +++ b/migration.go @@ -59,7 +59,7 @@ func (m *Migration) run(db *sql.DB, direction bool) error { } defer f.Close() - statements, useTx, err := parseSQLMigrationFile(f, direction) + statements, useTx, err := parseSQLMigration(f, direction) if err != nil { return errors.Wrapf(err, "ERROR %v: failed to parse SQL migration file", filepath.Base(m.Source)) } diff --git a/sql_parser.go b/sql_parser.go index 22d2d2a..a7820f3 100644 --- a/sql_parser.go +++ b/sql_parser.go @@ -43,7 +43,7 @@ var bufferPool = sync.Pool{ // within a statement. For these cases, we provide the explicit annotations // 'StatementBegin' and 'StatementEnd' to allow the script to // tell us to ignore semicolons. -func parseSQLMigrationFile(r io.Reader, direction bool) (stmts []string, useTx bool, err error) { +func parseSQLMigration(r io.Reader, direction bool) (stmts []string, useTx bool, err error) { var buf bytes.Buffer scanBuf := bufferPool.Get().([]byte) defer bufferPool.Put(scanBuf)