Skip to content

直接 ToLower 表名有大写怎么办啊😲 #20

@iseki0

Description

@iseki0

sqlw/convert.go

Lines 576 to 583 in 7be0054

func updateContext(ctx context.Context, selector Selector, db *DB, stmt *Stmt, sqlHead string, data interface{}, args ...interface{}) (Result, error) {
isStmt := (stmt != nil)
if !isStmt && sqlHead == "" {
return nil, fmt.Errorf("[sqlw %v] invalid sql head: %v", opTypInsert, sqlHead)
}
sqlHead = strings.ToLower(sqlHead)
// if strings.Contains(sqlHead, opTypSelect) ||

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions