replaced the UUIDToBin functions with a singular UUID_TO_BIN

This commit is contained in:
Jay 2024-02-22 17:23:14 +05:30
parent 09fe45b09c
commit 33ec120437
4 changed files with 17 additions and 22 deletions

View file

@ -4,8 +4,6 @@ import (
"math"
"testing"
"time"
"github.com/google/uuid"
)
func TestBool(t *testing.T) {
@ -83,11 +81,3 @@ func TestTimestamp(t *testing.T) {
assertSerialize(t, Timestamp(2010, time.March, 30, 10, 15, 30), `TIMESTAMP(?)`, "2010-03-30 10:15:30")
assertSerialize(t, TimestampT(time.Now()), `TIMESTAMP(?)`)
}
func TestUUIDToBin(t *testing.T) {
assertSerialize(t, UUIDToBin(uuid.Nil), `uuid_to_bin(?)`, uuid.Nil.String())
}
func TestStringUUIDToBin(t *testing.T) {
assertSerialize(t, StringUUIDToBin(uuid.Nil.String()), `uuid_to_bin(?)`, uuid.Nil.String())
}