db_tutorial icon indicating copy to clipboard operation
db_tutorial copied to clipboard

Writing a sqlite clone from scratch in C

Results 53 db_tutorial issues
Sort by recently updated
recently updated
newest added

# Atempt to get the rightmost child without validation ## Issue In [db.c : create_new_root(...)](https://github.com/cstack/db_tutorial/blob/60b50c5b7be787a4aaa1e50ab8a90c6cabb75159/db.c#L692C1-L700C4) ## code: ```c if (get_node_type(left_child) == NODE_INTERNAL) { void* child; for (int i = 0;...

中文翻译学习, 请各位大佬不腻赐教: https://github.com/akerdi/buildyourowndatabase

# Potential Initialization Bug in B+Tree Node Splitting ## Report In [db.c:683-689](https://github.com/cstack/db_tutorial/blob/60b50c5b7be787a4aaa1e50ab8a90c6cabb75159/db.c#L683C1-L689C39), there's a potential logical error: ```c if (get_node_type(root) == NODE_INTERNAL) { initialize_internal_node(right_child); initialize_internal_node(left_child); // This initialization is lost...