Skip to content

Commit fdbb5da

Browse files
committed
Make the 'seri' option start at 1 (not 0)
1 parent 205bcb9 commit fdbb5da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,9 @@ fn main() {
509509

510510
// Handle the 'seri' case where this column is a virtual auto-incrementing serial
511511
if let Some(ref serial) = table.columns[i].serial {
512-
let id = serial.get();
512+
let id = serial.get()+1;
513513
table.columns[i].value.borrow_mut().push_str(&id.to_string());
514-
serial.set(id+1);
514+
serial.set(id);
515515
continue;
516516
}
517517

0 commit comments

Comments
 (0)