Same as c8771e45b861 but when locking only records instead of the table.
Closes#13943
(grafted from 00790a58e6a364c46dd7178de02bd6842e6dc0c6)
--HG--
branch : 7.0
Changing the configuration value is not enough as its value is cached in the
global variable.
Closes#14248
(grafted from 2967a503290b9b6d724a1da46b80523e75536179)
--HG--
branch : 7.0
20cdba7a1bf3 removed the limit but it is still needed to extract the single
record.
Closes#14238
(grafted from 303d517654fcbee0369a27e752e312bd9b722d1c)
--HG--
branch : 7.0
Once a record has been created, the id is modified which change its hash value
such that it can not be found anymore.
But as the creation succeeded (and only the write part has failed) we can just
restore the values to None.
Closes#14093
(grafted from a56b25f536568b808bc4c57b6cee03408eaf06f2)
--HG--
branch : 7.0
Since version 0.8 werkzeug set the header automatically by default.
Closes#14010
(grafted from 5d2842d92f356a260afaa974ab5a413031505e95)
--HG--
branch : 7.0
9941357a9b7c modified the 'ref' method of the eval context of XML file to
return reference string but get_id return a tuple of string and integer. So the
integer must be converted to string before being joined.
Closes#14066
(grafted from 475210ef51e1963b70405ca01308068a132ee894)
--HG--
branch : 7.0
Cache instance can be created on usage like in ValueMixin, so a process may not
have an instance of the cleared cache.
Closes#14067
(grafted from f87b9d37d071aba0b1eaea2c5e9d6accac06aa74)
--HG--
branch : 7.0
e6c72b1f23e7 missed to add the decorator on the register method.
Closes#14060
(grafted from f340aa45b1a86e16d494d605549aba62270622d1)
--HG--
branch : 7.0
Calling Model.fields_get is expensive especially for each record to export.
Closes#14061
(grafted from f9886ab808fd8eb8a0334e6fb0e1f1839b4ddfe9)
--HG--
branch : 7.0
The process_lines of ModelStorage.import_data pop rows when importing One2Many.
But if the transaction has to be restarted for example if a lock is needed, the
original data from the request has been altered for the second call losing some
or all the data to be imported.
Closes#13984
(grafted from 2cb96c1427d7c0edcb1c9b5b410e220db3f8958e)
--HG--
branch : 7.0
It is not needed as SQLite does not have an explicit lock mechanism but such
call restart the transaction anyway.
(grafted from 4cc5987a3b800121007968cebb5976a5cac2384b)
--HG--
branch : 7.0
Since c8771e45b861 the retry is no more a countdown but an increasing count, so
the sleep time must be adapted to also increase over retries.
Closes#13910
(grafted from ec79b27486baf92769bef216aa4e5316ac708537)
--HG--
branch : 7.0
The TableHandler adds the table name as prefix to the constraint name so when
comparing with the integrity error message, it should also be added.
Especially if the constraint name is hashed by the TableHandler conversion
because the result is completely different.
Closes#13922
(grafted from 57e97b6d957e1b472eea3fb7bbdf2ecf03abfc6a)
--HG--
branch : 7.0
Since 87456218dcc9, record with NULL field is include in nested negative clause
but this should not applied if the operand is or contains None.
Closes#13911
(grafted from 993d890dd786424c2cd00009045ad95a09075e72)
--HG--
branch : 7.0
This permit to keep the connection alive when the database is killing idle
connections.
Closes#13902
(grafted from 12e80f41c37e1f77d1ae539e84989956a70da0d9)
--HG--
branch : 7.0
It is not possible from the clients to force to store None value instead of
empty string.
Closes#13890
(grafted from f7b12ada27377ec42a05b539791855e6f64c497f)
--HG--
branch : 7.0