Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field and table names quoting and Bool type #22

Open
korvinfn opened this issue Mar 15, 2013 · 0 comments
Open

Field and table names quoting and Bool type #22

korvinfn opened this issue Mar 15, 2013 · 0 comments

Comments

@korvinfn
Copy link

  1. There is no field and table names quoting in Find and FindAll methods. I'm using quick fix:

    ...
    if orm.TableName == "" {
        orm.TableName = orm.QuoteIdentifier + snakeCasedName(StructName(output)) + orm.QuoteIdentifier
    }
    for key, _ := range results {
        keys = append(keys, orm.QuoteIdentifier + key + orm.QuoteIdentifier)
    }
    
  2. There is no reflect.Bool case in FindMap method. I'm using quick fix:

        ...
        case reflect.Bool:
            if vv.Bool() {
                result[key] = []byte("1")
            } else {
                result[key] = []byte("0")
            }
        }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant