litesuits / litesuits/android-lite-orm

插入BigDecimal类型数据的问题

Open
#73 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.5k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

我这边需要在数据库存储后台传来的价格信息,用BigDecimal存储的时候,报错:

SQLiteException: unknown error (code 0):INTEGER data in nativeGetBlob

这个是为何?需要我上传具体的日志吗?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported BigDecimal write to SQLite and collect the specific logs requested in the issue. Trace how the ORM maps and reads this value, then identify the cause of the INTEGER data in nativeGetBlob error. Done means the cause and a verified handling or limitation are documented with a reproducible test case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sqlite
Domain
database, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.