Skip to content

Commit 41ee0a2

Browse files
committed
Optimize get Query column count
1 parent eaac2de commit 41ee0a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl Query {
152152
}
153153

154154
pub fn column_count(&self) -> usize {
155-
unsafe { xdb_column_count(self.ptr) as usize }
155+
self.columns.len()
156156
}
157157

158158
pub fn row_count(&self) -> usize {

0 commit comments

Comments
 (0)