[Bug241] Add mysql unicode character comment.

This commit is contained in:
go-jet 2023-07-23 17:56:07 +02:00
parent bb22b80984
commit aace1156ba
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,8 @@
package metadata
import "regexp"
import (
"regexp"
)
// Column struct
type Column struct {

View file

@ -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

View file

@ -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, `
[
{