@@ -122,7 +122,7 @@ func testBulkcopy(t *testing.T, guidConversion bool) {
122122 }
123123
124124 tableName := "#table_test"
125- geom , _ := hex .DecodeString ("E6100000010C00000000000034400000000000004440" )
125+ // geom, _ := hex.DecodeString("E6100000010C00000000000034400000000000004440")
126126 bin , _ := hex .DecodeString ("ba8b7782168d4033a299333aec17bd33" )
127127 uid := []byte {0x6F , 0x96 , 0x19 , 0xFF , 0x8B , 0x86 , 0xD0 , 0x11 , 0xB4 , 0x2D , 0x00 , 0xC0 , 0x4F , 0xC9 , 0x64 , 0xFF }
128128 testValues := []testValue {
@@ -165,7 +165,7 @@ func testBulkcopy(t *testing.T, guidConversion bool) {
165165 {"test_bigintn" , nil , nil },
166166 {"test_intf" , 1234.56 , 1234 },
167167 {"test_intf32" , float32 (1234.56 ), 1234 },
168- {"test_geom" , geom , string (geom )},
168+ // {"test_geom", geom, string(geom)},
169169 {"test_uniqueidentifier" , uid , string (uid )},
170170 {"test_nulluniqueidentifier" , nil , nil },
171171 {"test_nullfloat" , sql.NullFloat64 {64 , true }, 64.0 },
@@ -176,8 +176,10 @@ func testBulkcopy(t *testing.T, guidConversion bool) {
176176 {"test_nullint32" , sql.NullInt32 {2147483647 , true }, 2147483647 },
177177 {"test_nullint16" , sql.NullInt16 {32767 , true }, 32767 },
178178 {"test_nulltime" , sql.NullTime {time .Date (2010 , 11 , 12 , 13 , 14 , 15 , 120000000 , time .UTC ), true }, time .Date (2010 , 11 , 12 , 13 , 14 , 15 , 120000000 , time .UTC )},
179- // {"test_smallmoney", 1234.56, nil},
180- // {"test_money", 1234.56, nil},
179+ {"test_smallmoney" , []byte ("1234.5600" ), nil },
180+ {"test_smallmoneyn" , nil , nil },
181+ {"test_money" , []byte ("1234.5600" ), nil },
182+ {"test_moneyn" , nil , nil },
181183 {"test_decimal_18_0" , 1234.0001 , "1234" },
182184 {"test_decimal_9_2" , - 1234.560001 , "-1234.56" },
183185 {"test_decimal_20_0" , 1234 , "1234" },
@@ -407,8 +409,10 @@ func setupTable(ctx context.Context, t *testing.T, conn *sql.Conn, tableName str
407409 [test_date_2] [date] NULL,
408410 [test_time] [time](7) NULL,
409411 [test_time_2] [time](7) NULL,
410- [test_smallmoney] [smallmoney] NULL,
411- [test_money] [money] NULL,
412+ [test_smallmoney] [smallmoney] NOT NULL,
413+ [test_smallmoneyn] [smallmoney] NULL,
414+ [test_money] [money] NOT NULL,
415+ [test_moneyn] [money] NULL,
412416 [test_tinyint] [tinyint] NULL,
413417 [test_smallint] [smallint] NOT NULL,
414418 [test_smallintn] [smallint] NULL,
0 commit comments