From 008794423b00488ee45fb204bf5c6fc5205475cb Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 29 Aug 2022 14:17:27 +0800 Subject: Fix pinyin.cpp --- src/storage/phrase_large_table3_bdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/storage/phrase_large_table3_bdb.cpp') diff --git a/src/storage/phrase_large_table3_bdb.cpp b/src/storage/phrase_large_table3_bdb.cpp index da2e6f2..9074170 100644 --- a/src/storage/phrase_large_table3_bdb.cpp +++ b/src/storage/phrase_large_table3_bdb.cpp @@ -230,7 +230,7 @@ int PhraseLargeTable3::search_suggestion(int phrase_length, DBT db_data; memset(&db_data, 0, sizeof(DBT)); /* Get the prefix entry */ - ret = cursorp->c_get(cursorp, &db_key1, &db_data, 0); + ret = cursorp->c_get(cursorp, &db_key1, &db_data, DB_SET); if (ret != 0) { cursorp->c_close(cursorp); return result; -- cgit