You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good:
Nullable!User getUser(int _user_id)
{
auto conn = m_pgdb.lockConnection();
auto cmd = new PGCommand(conn, "SELECT user_id, username, email FROM users WHERE user_id = $1;");
cmd.parameters.add(1, PGType.INT4).value = _user_id;
..
}
Exception:
Nullable!User getUser(in int _user_id)
{
auto conn = m_pgdb.lockConnection();
auto cmd = new PGCommand(conn, "SELECT user_id, username, email FROM users WHERE user_id = $1;");
cmd.parameters.add(1, PGType.INT4).value = _user_id;
..
}
ddb.postgres.ParamException@C:\Users\pavel\AppData\Roaming\dub\packages\ddb-0.2.3\source\ddb\postgres.d(842): Parameter's value is not convertible to int
The text was updated successfully, but these errors were encountered:
Good:
Nullable!User getUser(int _user_id)
{
auto conn = m_pgdb.lockConnection();
auto cmd = new PGCommand(conn, "SELECT user_id, username, email FROM users WHERE user_id = $1;");
cmd.parameters.add(1, PGType.INT4).value = _user_id;
..
}
Exception:
Nullable!User getUser(in int _user_id)
{
auto conn = m_pgdb.lockConnection();
auto cmd = new PGCommand(conn, "SELECT user_id, username, email FROM users WHERE user_id = $1;");
cmd.parameters.add(1, PGType.INT4).value = _user_id;
..
}
ddb.postgres.ParamException@C:\Users\pavel\AppData\Roaming\dub\packages\ddb-0.2.3\source\ddb\postgres.d(842): Parameter's value is not convertible to int
The text was updated successfully, but these errors were encountered: