Update the stale Db2 LUW row in seven translated READMEs

Closed Beginner friendly
#2,161 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown, typescript
Domain
documentation

Research direction

Start with README.md:338 and README_es.md:150 to see the English and Spanish Db2 LUW rows, then the seven translated READMEs at the lines listed in the issue. Check src/lib/db/providers/sql/db2/capabilities.ts lines 69 and 79 and docs/providers/db2.md to confirm the current state. Done when all nine rows list only Create Table, EXPLAIN and cancel as off, and bun run readme:check passes.

Written by the indexing model from the issue text.

Description

documentation good first issue

What

The Db2 LUW row in seven translated READMEs says the driver misreads non-ASCII text, BIGINT past 2^53, BOOLEAN, XML and LOBs, so inline editing and import are off. Those driver bugs are fixed and inline editing and import are on. README.md lists inline editing and import as features and names only one remaining problem: a value bound to a large CLOB, DBCLOB or BLOB column is not written.

Where

  • README_hi.md:151

    Driver कुछ types गलत पढ़ता है (non-ASCII text, 2^53 से बड़ा BIGINT, BOOLEAN, XML, LOBs), इसलिए inline editing, import, EXPLAIN, transactions और cancel बंद हैं;

  • README_ja.md:149

    一部の型(非ASCIIテキスト、2^53を超えるBIGINT、BOOLEAN、XML、LOB)を誤読するため、インライン編集・インポート・EXPLAIN・トランザクション・キャンセルは無効。

  • README_ko.md:344

    Driver가 일부 type(non-ASCII text, 2^53을 초과하는 BIGINT, BOOLEAN, XML, LOB)을 잘못 읽는 문제가 있어 인라인 편집, 가져오기, EXPLAIN, transaction, 취소 기능은 비활성화되어 있습니다.

  • README_pt.md:150

    O driver lê errado alguns tipos (texto não ASCII, BIGINT acima de 2^53, BOOLEAN, XML, LOBs), então a edição em linha, a importação, EXPLAIN, as transações e o cancelamento estão desativados;

  • README_ru.md:154

    Драйвер неверно читает некоторые типы (не-ASCII текст, BIGINT больше 2^53, BOOLEAN, XML, LOB), поэтому редактирование строк, импорт, EXPLAIN, транзакции и отмена запроса отключены;

  • README_ur.md:165

    Driver کچھ types غلط پڑھتا ہے (non-ASCII text، 2^53 سے بڑا BIGINT، BOOLEAN، XML، LOBs)، اس لیے inline editing، import، EXPLAIN، transactions اور cancel بند ہیں؛

  • README_zh.md:301

    驱动会误读部分类型(非 ASCII 文本、超过 2^53 的 BIGINT、BOOLEAN、XML、LOB),所以行内编辑、导入、EXPLAIN、事务和取消均已关闭;

The English row, README.md:338:

RUNSTATS and REORG per table, inline editing and import into existing tables. TLS is required unless you opt out, because without it the password crosses the network in cleartext. A value bound to a large CLOB, DBCLOB or BLOB column is not written and no error says so, so the table preview leaves those columns out and offers no edit of them; Create Table, EXPLAIN, transactions and cancel are off.

The code: src/lib/db/providers/sql/db2/capabilities.ts:69 and :79

supportsInlineRowEdit: true,

supportsTransactions: true,

Expected

Each translated Db2 row says what the English row says: inline editing and import into existing tables are features; a value bound to a large CLOB, DBCLOB or BLOB column is not written and no error says so, so the preview leaves those columns out; Create Table, EXPLAIN and cancel are off. No row mentions non-ASCII text, BIGINT past 2^53, BOOLEAN or XML as misread.

Note that the English row (and README_es.md:150, which copies it) still lists transactions as off. Transactions are on: capabilities.ts:79 above, and docs/providers/db2.md:227:

| Transactions and SANDBOX | Yes | On a session of its own, section 7.7; SANDBOX refuses BEGIN and CALL, which can commit |

So drop "transactions" from the list of things that are off, in the English and Spanish rows too.

How to fix

  1. Read README.md:338 and README_es.md:150. The Spanish row is already up to date apart from "transacciones" and shows how the English row reads in translation.
  2. In each of the seven files, add inline editing and import into existing tables to the feature list, and replace the "driver misreads ..." sentence with a translation of the CLOB, DBCLOB, BLOB sentence.
  3. In all nine rows (English, Spanish and the seven), list only Create Table, EXPLAIN and cancel as off.
  4. Keep the link to docs/providers/db2.md at the end of each row.

How to check

grep -nF '2^53' README_*.md | grep 'Db2'
grep -n 'Db2 LUW' README*.md | grep -c 'CLOB'
bun run readme:check

The first grep should print nothing, and the second should print 9.

Backlog

This is entry DOC10 in docs/BACKLOG.md. The PR that fixes it deletes that entry.

Dominant language
TypeScript
Stars
810
Forks
158
Avg merge
10h 30m
Merged PRs (30d)
561

Getting set up

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.

More from libredb/libredb-studio

All issues in libredb/libredb-studio

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.