Opened 4 months ago

Closed 4 months ago

#36395 closed Bug (needsinfo)

翻译错误

Reported by: hongdapi Owned by:
Component: Database layer (models, ORM) Version: 5.2
Severity: Normal Keywords:
Cc: hongdapi Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

数据库事务-特定于数据库的注释-SQLite 中的保存点

原文:当启用自动提交时,保存点没有意义。当关闭时,sqlite3 会在保存点语句之前隐式提交。(事实上,它会在除了 SELECT, INSERT, UPDATE, DELETE and REPLACE 之前的任何语句之前提交)这个 Bug 有两个后果

’之前的任何语句之前提交‘应该改为‘之外的任何语句之前提交’

Change History (1)

comment:1 by Sarah Boyce, 4 months ago

Component: UncategorizedDatabase layer (models, ORM)
Resolution: needsinfo
Status: newclosed
Type: UncategorizedBug

The english translation for this appears to be:

Database Transactions - Database Specific Notes - Savepoints in SQLite

Original: When autocommit is enabled, savepoints have no meaning. When it is off, sqlite3 implicitly commits before the savepoint statement. (In fact, it commits before any statement other than SELECT, INSERT, UPDATE, DELETE and REPLACE) This bug has two consequences

'Commit before any statement before' should be changed to 'Commit before any statement other than'

Perhaps you can write a test to show the behavior?

Note: See TracTickets for help on using tickets.
Back to Top