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

Sql.NullInts from "database/sql" not displaying warnings properly #2866

Open
BKadishAdFin opened this issue Jan 30, 2017 · 2 comments
Open

Comments

@BKadishAdFin
Copy link

  • Plugin version (or commit hash):

  • IDE name and version:
    kIntelliJ IDEA 2016.3.3
    Build #IC-163.11103.6, built on January 16, 2017

  • Java version:
    1.8.0_112-release-408-b6 x86_64
    OpenJDK 64-Bit Server VM by JetBrains s.r.o

  • OS name and version:
    OSX El Capitan 10.11.6 (15G1212)

  • What are you trying to do?
    Write an if statement using sql.Nullint

  • What would you expect to happen?
    Have no warning appear when writing a fully reduced boolean statement

  • What happens?
    Warning statement appears

Your issue description goes here.
Please be as detailed as possible

gk := sql.NullInt64{}
gv := sql.NullInt64{}
if gk.Valid && gv.Valid {
                 
}

Or include a screenshot / video of the issue.
warning

@dlsniper
Copy link
Member

@BKadishAdFin can you please explain which error appears there? Thank you.

@BKadishAdFin
Copy link
Author

@dlsniper

screen shot 2017-01-30 at 9 41 58 am

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

2 participants