[Bug241] Add mysql unicode character comment.
This commit is contained in:
parent
bb22b80984
commit
aace1156ba
3 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
package metadata
|
package metadata
|
||||||
|
|
||||||
import "regexp"
|
import (
|
||||||
|
"regexp"
|
||||||
|
)
|
||||||
|
|
||||||
// Column struct
|
// Column struct
|
||||||
type Column struct {
|
type Column struct {
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ package model
|
||||||
type Link struct {
|
type Link struct {
|
||||||
ID int32 `+"`sql:\"primary_key\"`"+` // this is link id
|
ID int32 `+"`sql:\"primary_key\"`"+` // this is link id
|
||||||
URL string // link url
|
URL string // link url
|
||||||
Name string // link name
|
Name string // Unicode characters comment ₲鬼佬℧⇄↻
|
||||||
Description *string // '"\\%\_
|
Description *string // '"\\%\_
|
||||||
}
|
}
|
||||||
`)
|
`)
|
||||||
|
|
@ -219,7 +219,7 @@ type linkTable struct {
|
||||||
// Columns
|
// Columns
|
||||||
ID mysql.ColumnInteger // this is link id
|
ID mysql.ColumnInteger // this is link id
|
||||||
URL mysql.ColumnString // link url
|
URL mysql.ColumnString // link url
|
||||||
Name mysql.ColumnString // link name
|
Name mysql.ColumnString // Unicode characters comment ₲鬼佬℧⇄↻
|
||||||
Description mysql.ColumnString // '"\\%\_
|
Description mysql.ColumnString // '"\\%\_
|
||||||
|
|
||||||
AllColumns mysql.ColumnList
|
AllColumns mysql.ColumnList
|
||||||
|
|
|
||||||
|
|
@ -1461,8 +1461,6 @@ ORDER BY components.id, vulnerabilities.id, children.id, children_vulnerabilitie
|
||||||
err := stmt.Query(db, &dest)
|
err := stmt.Query(db, &dest)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
testutils.PrintJson(dest)
|
|
||||||
|
|
||||||
testutils.AssertJSON(t, dest, `
|
testutils.AssertJSON(t, dest, `
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue