Skip to content
This repository has been archived by the owner on May 3, 2018. It is now read-only.

Commit

Permalink
Fixed line ending issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Newton committed Nov 22, 2017
1 parent 67dd8bb commit 414c9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rds/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (c *Client) UpdateLoadedPackageVersion(packageMetadata *factset.PackageMeta

func (c *Client) LoadTable(filename, table string) error {
queryTemplate := `LOAD DATA LOCAL INFILE '%s' REPLACE INTO TABLE %s FIELDS TERMINATED BY '|'
OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES;`
OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES;`

_, err := c.DB.Exec(fmt.Sprintf(queryTemplate, filename, table))
return err
Expand Down

0 comments on commit 414c9bb

Please sign in to comment.