[Django] #36395: 翻译错误

5 views
Skip to first unread message

Django

unread,
May 15, 2025, 4:17:17 AM5/15/25
to django-...@googlegroups.com
#36395: 翻译错误
--------------------------+-----------------------------------------
Reporter: hongdapi | Type: Uncategorized
Status: new | Component: Uncategorized
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------+-----------------------------------------
数据库事务-特定于数据库的注释-SQLite 中的保存点

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

’之前的任何语句之前提交‘应该改为‘之外的任何语句之前提交’
--
Ticket URL: <https://code.djangoproject.com/ticket/36395>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 15, 2025, 4:28:33 AM5/15/25
to django-...@googlegroups.com
#36395: 翻译错误
-------------------------------------+-------------------------------------
Reporter: hongdapi | Owner: (none)
Type: Bug | Status: closed
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* component: Uncategorized => Database layer (models, ORM)
* resolution: => needsinfo
* status: new => closed
* type: Uncategorized => Bug

Comment:

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?
--
Ticket URL: <https://code.djangoproject.com/ticket/36395#comment:1>
Reply all
Reply to author
Forward
0 new messages