2
0

Finish import of pgtype repo

Fix some tests that broke by merging repos
Tweak readme wording
This commit is contained in:
Jack Christensen
2021-12-04 13:33:09 -06:00
parent 7aeb42b80c
commit 7e13db4538
116 changed files with 294 additions and 686 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
type Float8 float64
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgtype/zeronull"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
)
func TestFloat8Transcode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
type Int2 int16
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgtype/zeronull"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
)
func TestInt2Transcode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
type Int4 int32
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgtype/zeronull"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
)
func TestInt4Transcode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
type Int8 int64
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgtype/zeronull"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
)
func TestInt8Transcode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
type Text string
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgtype/zeronull"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
)
func TestTextTranscode(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"time"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
type Timestamp time.Time
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgtype/zeronull"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
)
func TestTimestampTranscode(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"time"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
type Timestamptz time.Time
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgtype/zeronull"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
)
func TestTimestamptzTranscode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
type UUID [16]byte
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgtype/zeronull"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
)
func TestUUIDTranscode(t *testing.T) {