diff options
author | Peng Wu <alexepico@gmail.com> | 2022-08-29 14:17:27 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2022-08-29 14:20:46 +0800 |
commit | 008794423b00488ee45fb204bf5c6fc5205475cb (patch) | |
tree | bdc0453434c847c76d2d607f7daead22ccb850b1 /src/storage/phrase_large_table3_bdb.cpp | |
parent | 3e857c0a978133ad1a59eec1788f5fd6f1e7f187 (diff) | |
download | libpinyin-008794423b00488ee45fb204bf5c6fc5205475cb.tar.gz libpinyin-008794423b00488ee45fb204bf5c6fc5205475cb.tar.xz libpinyin-008794423b00488ee45fb204bf5c6fc5205475cb.zip |
Fix pinyin.cpp
Diffstat (limited to 'src/storage/phrase_large_table3_bdb.cpp')
-rw-r--r-- | src/storage/phrase_large_table3_bdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |