58
58
drizzle_test("drizzle_create");
59
59
if ((drizzle= drizzle_create(NULL)) == NULL)
60
61
drizzle_test_error("returned NULL");
62
64
drizzle_test("drizzle_con_create");
63
65
if ((con= drizzle_con_create(drizzle, NULL)) == NULL)
64
67
drizzle_test_error("returned NULL");
66
70
drizzle_test("drizzle_result_create");
67
71
if ((result= drizzle_result_create(con, NULL)) == NULL)
68
73
drizzle_test_error("returned NULL");
70
76
drizzle_test("drizzle_column_create buffer");
71
77
if ((column= drizzle_column_create(result, &column_buffer)) == NULL)
72
79
drizzle_test_error("returned NULL");
73
81
drizzle_column_free(column);
75
83
drizzle_test("drizzle_column_create");
76
84
if ((column= drizzle_column_create(result, NULL)) == NULL)
77
86
drizzle_test_error("returned NULL");
79
89
drizzle_test("drizzle_column_set_catalog");
80
90
drizzle_column_set_catalog(column, "simple test");
82
92
drizzle_test("drizzle_column_catalog");
83
93
if (strcmp(drizzle_column_catalog(column), "simple test"))
84
95
drizzle_test_error("does not match what was set");
86
98
drizzle_test("drizzle_column_free");
87
99
drizzle_column_free(column);