select null management
This commit is contained in:
		
							
								
								
									
										1
									
								
								pg.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								pg.go
									
									
									
									
									
								
							@@ -527,5 +527,4 @@ func FormatForSQL(datatype string, value interface{}) string {
 | 
			
		||||
		return fmt.Sprint(pq.QuoteLiteral(strval))
 | 
			
		||||
	}
 | 
			
		||||
	return fmt.Sprint(strval)
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ func TestCreateTable(t *testing.T) {
 | 
			
		||||
	db := Open("postgres", "host=127.0.0.1 port=5432 user=test password=test dbname=test sslmode=disable")
 | 
			
		||||
	defer db.Close()
 | 
			
		||||
 | 
			
		||||
	jsonFile, err := os.Open("testtype_table.json")
 | 
			
		||||
	jsonFile, err := os.Open("test_table.json")
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		fmt.Println(err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user