miniob icon indicating copy to clipboard operation
miniob copied to clipboard

MiniOB is a compact database that assists developers in understanding the fundamental workings of a database.

Results 103 miniob issues
Sort by recently updated
recently updated
newest added

error info below: ```shell $ git submodule add https://github.com/libevent/libevent deps/libevent 'deps/libevent' already exists in the index ``` resolve it by exec git rm -r --cached, update the git cache.

the codes for attribute compare is duplicate ```cpp int operator()(const char *v1, const char *v2) const { switch (attr_type_) { case INTS: { return *(int *)v1 - *(int *)v2; }...

event_set is used in server.cpp, but it is deprecated

the file handler.h is not referenced by any file

I cannot find the gdb in docker image, but it is important

在server.cpp: send中,发送消息出现异常,会close_connection,但是没有终止会话,导致还可能再次通过连接发送消息,引起coredump

![ecebcf562c8b6cfda843afb03b0f6fc](https://user-images.githubusercontent.com/32130965/139568819-a417b2fa-d282-46ef-b781-2233e715260e.png) 比如我此图,上面的查询是我更改了delete的逻辑,在dispose_page的时候如果把页面删除掉了就让pageCount--,才不会出现delete后select出错的情况。 还有,原生的insert和delete在执行后均不能在磁盘上持久化,miniob的事务代码中并没有此逻辑,并且也没有让我们实现事务的功能。

miniob的小伙伴们你们好,我使用`vim`搭配`coc.nvim`以及`clangd`实现c/c++的自动补全,因此对`compile_commands.json`有需求。 当前的CMakeLists.txt已经涉及`compile_commands.json`的生成,但是这个FLAG的位置应该摆错了。 https://github.com/oceanbase/miniob/blob/c611d5fe878382116b6a329418b37d6a66daa2e1/CMakeLists.txt#L40 虽然`CMAKE_COMMON_FLAGS`这个变量感觉上是设置了`cmake`的FLAGS,但是最后其实是赋值给了`CMAKE_CXX_FLAGS`,而`-DCMAKE_EXPORT_COMPILE_COMMANDS=1`这个参数是用在`cmake`上的,而不是`gcc`。 解决方法是: 1、在CMakeLists.txt开头位置附近加上`set(CMAKE_EXPORT_COMPILE_COMMANDS ON)` 2、或在运行cmake时加上参数,即`cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..` 这样就能生成`compile_commands.json`: ![image](https://user-images.githubusercontent.com/32434520/137582001-0b0f8ac2-73d2-452e-96f2-e6d9f408f291.png)

1. select 中的属性包括了group by子句中未出现的属性, aggreation-func与group-by测试中均有这样的数据 group-by: t_group_by_2.age不在group by子句中 ``` 5. MULTI TABLE select t_group_by.id, t_group_by.name, t_group_by_2.age, avg(t_group_by.score) from t_group_by, t_group_by_2 where t_group_by.id=t_group_by_2.id group by t_group_by.id, t_group_by.name; -1 | B |...