Skip to content

can not use "not res" to judge if the 'res' is empty table #138

@taka250

Description

@taka250

the Synopsis in readme use
local res, err, errcode, sqlstate = db:query("drop table if exists cats") if not res then ngx.say("bad result: ", err, ": ", errcode, ": ", sqlstate, ".") return end
"not res" cannot judge
you shoud use next(use) or calculate the length to judge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions