Example #1
0
func TestTypeNumeric_zeroScale(t *testing.T) {
	expected := "NUMERIC(100)"
	got := pqt.TypeNumeric(100, 0)

	assertType(t, expected, got)
}
Example #2
0
func TestTypeNumeric(t *testing.T) {
	expected := "NUMERIC(100,2)"
	got := pqt.TypeNumeric(100, 2)

	assertType(t, expected, got)
}
Example #3
0
func TestTypeNumeric_zeroPrecisionZeroScale(t *testing.T) {
	expected := "NUMERIC"
	got := pqt.TypeNumeric(0, 0)

	assertType(t, expected, got)
}