What is the value of cc? I suspect that it is 0 and that this Swift thing simply cannot deal with empty results since column 0 has no declared type. What do you mean do "command without single quotes". Do you mean, for example, the following statement "select datetime() as time, int_test from stest" behaves differently? This is probably an issue with this Swift thing since the C API does not have this problem.