Compare commits
2 Commits
5709bfd21d
...
d5db656ca2
Author | SHA1 | Date | |
---|---|---|---|
d5db656ca2
|
|||
369d445637
|
@@ -30,7 +30,7 @@ func dbGetUser(id string) (*User, error) {
|
||||
func dbGetUserByName(username string) (*User, error) {
|
||||
// This will be deprecated soon after implementing https://git.dubyatp.xyz/williamp/chatservice_concept/issues/1
|
||||
|
||||
query := `SELECT id, name, password FROM users WHERE name = ? ALLOW FILTERING`
|
||||
query := `SELECT id, name, password FROM users WHERE name = ?`
|
||||
var user User
|
||||
err := db.Session.Query(query, username).Scan(&user.ID, &user.Name, &user.Password)
|
||||
if err == gocql.ErrNotFound {
|
||||
|
3
vendor/github.com/gocql/gocql/serialization/decimal/marshal.go
generated
vendored
3
vendor/github.com/gocql/gocql/serialization/decimal/marshal.go
generated
vendored
@@ -1,8 +1,9 @@
|
||||
package decimal
|
||||
|
||||
import (
|
||||
"gopkg.in/inf.v0"
|
||||
"reflect"
|
||||
|
||||
"gopkg.in/inf.v0"
|
||||
)
|
||||
|
||||
func Marshal(value interface{}) ([]byte, error) {
|
||||
|
3
vendor/github.com/gocql/gocql/serialization/decimal/marshal_utils.go
generated
vendored
3
vendor/github.com/gocql/gocql/serialization/decimal/marshal_utils.go
generated
vendored
@@ -2,12 +2,13 @@ package decimal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gopkg.in/inf.v0"
|
||||
"math/big"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"gopkg.in/inf.v0"
|
||||
|
||||
"github.com/gocql/gocql/serialization/varint"
|
||||
)
|
||||
|
||||
|
3
vendor/github.com/gocql/gocql/serialization/decimal/unmarshal.go
generated
vendored
3
vendor/github.com/gocql/gocql/serialization/decimal/unmarshal.go
generated
vendored
@@ -2,8 +2,9 @@ package decimal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gopkg.in/inf.v0"
|
||||
"reflect"
|
||||
|
||||
"gopkg.in/inf.v0"
|
||||
)
|
||||
|
||||
func Unmarshal(data []byte, value interface{}) error {
|
||||
|
3
vendor/github.com/gocql/gocql/serialization/decimal/unmarshal_utils.go
generated
vendored
3
vendor/github.com/gocql/gocql/serialization/decimal/unmarshal_utils.go
generated
vendored
@@ -2,10 +2,11 @@ package decimal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gopkg.in/inf.v0"
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
||||
"gopkg.in/inf.v0"
|
||||
|
||||
"github.com/gocql/gocql/serialization/varint"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user