Skip to content

Instantly share code, notes, and snippets.

@trashhalo
Created February 29, 2020 18:12
Show Gist options
  • Save trashhalo/0455c0e05c0eab5b043f06c004d94d1b to your computer and use it in GitHub Desktop.
Save trashhalo/0455c0e05c0eab5b043f06c004d94d1b to your computer and use it in GitHub Desktop.
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