package mysqlbackend

import (
	"database/sql"
	"testing"
)

func TestNullableStringValue(t *testing.T) {
	if got := nullableStringValue(sql.NullString{}); got != "" {
		t.Fatalf("expected empty string for NULL, got %q", got)
	}
	if got := nullableStringValue(sql.NullString{String: "CURRENT_TIMESTAMP", Valid: true}); got != "CURRENT_TIMESTAMP" {
		t.Fatalf("unexpected non-null conversion: %q", got)
	}
}
