[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
|
||||
|
||||
import "regexp"
|
||||
import (
|
||||
"regexp"
|
||||
)
|
||||
|
||||
// Column struct
|
||||
type Column struct {
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ package model
|
|||
type Link struct {
|
||||
ID int32 `+"`sql:\"primary_key\"`"+` // this is link id
|
||||
URL string // link url
|
||||
Name string // link name
|
||||
Name string // Unicode characters comment ₲鬼佬℧⇄↻
|
||||
Description *string // '"\\%\_
|
||||
}
|
||||
`)
|
||||
|
|
@ -219,7 +219,7 @@ type linkTable struct {
|
|||
// Columns
|
||||
ID mysql.ColumnInteger // this is link id
|
||||
URL mysql.ColumnString // link url
|
||||
Name mysql.ColumnString // link name
|
||||
Name mysql.ColumnString // Unicode characters comment ₲鬼佬℧⇄↻
|
||||
Description mysql.ColumnString // '"\\%\_
|
||||
|
||||
AllColumns mysql.ColumnList
|
||||
|
|
|
|||
|
|
@ -1461,8 +1461,6 @@ ORDER BY components.id, vulnerabilities.id, children.id, children_vulnerabilitie
|
|||
err := stmt.Query(db, &dest)
|
||||
require.NoError(t, err)
|
||||
|
||||
testutils.PrintJson(dest)
|
||||
|
||||
testutils.AssertJSON(t, dest, `
|
||||
[
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue