l2postgres
This commit is contained in:
parent
e62ba13b54
commit
c4be86b59f
@ -505,7 +505,7 @@ pub fn game_new(game: &Game, tx: &mut Transaction) -> Result<(), Error> {
|
|||||||
let game_bytes = to_vec(&game)?;
|
let game_bytes = to_vec(&game)?;
|
||||||
|
|
||||||
let query = "
|
let query = "
|
||||||
INSERT INTO games (id, data, joinable)
|
INSERT INTO games (id, joinable, data)
|
||||||
VALUES ($1, $2, $3)
|
VALUES ($1, $2, $3)
|
||||||
RETURNING id;
|
RETURNING id;
|
||||||
";
|
";
|
||||||
@ -576,7 +576,7 @@ pub fn game_update(game: &Game, tx: &mut Transaction) -> Result<(), Error> {
|
|||||||
|
|
||||||
let query = "
|
let query = "
|
||||||
UPDATE games
|
UPDATE games
|
||||||
SET (data = $1, joinable = $2)
|
SET data = $1, joinable = $2
|
||||||
WHERE id = $3
|
WHERE id = $3
|
||||||
RETURNING id, data;
|
RETURNING id, data;
|
||||||
";
|
";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user