Created
February 29, 2020 18:12
-
-
Save trashhalo/0455c0e05c0eab5b043f06c004d94d1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func exec(query string, args string) (string, error) { | |
return "", nil | |
} | |
func requireNil(err error) { | |
} | |
// in vim to trigger the issue: set synmaxcol=80 | |
func main() { | |
id := "hfief" | |
_, err := exec(` | |
insert into person (col_1, col_2, col_1, col_2,ccol_1, col_2, col_1, col_2, col_1, col_2, col_1, col_2) values | |
($1, 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value'); | |
`, id) | |
requireNil(err) | |
id = "hfief" | |
_, err = exec(` | |
insert into person (col_1, col_2, col_1, col_2,ccol_1, col_2, col_1, col_2, col_1, col_2, col_1, col_2) values | |
($1, 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value'); | |
`, id) | |
requireNil(err) | |
id = "hfief" | |
_, err = exec(` | |
insert into person (col_1, col_2, col_1, col_2,ccol_1, col_2, col_1, col_2, col_1, col_2, col_1, col_2) values | |
($1, 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value'); | |
`, id) | |
requireNil(err) | |
id = "hfief" | |
_, err = exec(` | |
insert into person (col_1, col_2, col_1, col_2,ccol_1, col_2, col_1, col_2, col_1, col_2, col_1, col_2) values | |
($1, 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value'); | |
`, id) | |
requireNil(err) | |
id = "hfief" | |
_, err = exec(` | |
insert into person (col_1, col_2, col_1, col_2,ccol_1, col_2, col_1, col_2, col_1, col_2, col_1, col_2) values | |
($1, 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value', 'VALUE', 'value'); | |
`, id) | |
requireNil(err) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment