MySQL linter errors.
This commit is contained in:
parent
5e76355275
commit
46a3dc7dfb
31 changed files with 254 additions and 136 deletions
|
|
@ -105,9 +105,9 @@ func (b *castImpl) AS_TEXT() StringExpression {
|
|||
return StringExp(b.AS("text"))
|
||||
}
|
||||
|
||||
func (b *castImpl) AS_CHAR(lenght ...int) StringExpression {
|
||||
if len(lenght) > 0 {
|
||||
return StringExp(b.AS("char(" + strconv.Itoa(lenght[0]) + ")"))
|
||||
func (b *castImpl) AS_CHAR(length ...int) StringExpression {
|
||||
if len(length) > 0 {
|
||||
return StringExp(b.AS("char(" + strconv.Itoa(length[0]) + ")"))
|
||||
}
|
||||
|
||||
return StringExp(b.AS("char"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue