<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/mariadb-git.git/sql/sql_error.cc, branch bb-10.7-MDEV-10075</title>
<subtitle>github.com: MariaDB/server.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/'/>
<entry>
<title>MDEV-10075: Provide index of error causing error in array INSERT</title>
<updated>2021-09-09T09:09:03+00:00</updated>
<author>
<name>Rucha Deodhar</name>
<email>rucha.deodhar@mariadb.com</email>
</author>
<published>2021-07-31T07:25:21+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=9295921e8740335e12b2697ffa8e444cc942b0a2'/>
<id>9295921e8740335e12b2697ffa8e444cc942b0a2</id>
<content type='text'>
Extended the parser for GET DIAGNOSTICS to use ERROR_INDEX to get
warning/error index.
Error information is stored in Sql_condition. So it can be used to
store the index of warning/error too. THD::current_insert_index keeps a
track of count for each row that is processed or going to be inserted in the
table (or first row in case of prepare phase). When an error occurs,
first we need to fetch corrected error index (using correct_error_index())
for an error number. This is needed because in prepare phase, the error
may not be because of rows/values. In such case, correct value of
error_index should be 0. Once correct value if fetched, assign it to
Sql_condition::error_index when the object is created during error/warning.
This error_index variable is returned when ERROR_INDEX is used in
GET DIAGNOSTICS.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Extended the parser for GET DIAGNOSTICS to use ERROR_INDEX to get
warning/error index.
Error information is stored in Sql_condition. So it can be used to
store the index of warning/error too. THD::current_insert_index keeps a
track of count for each row that is processed or going to be inserted in the
table (or first row in case of prepare phase). When an error occurs,
first we need to fetch corrected error index (using correct_error_index())
for an error number. This is needed because in prepare phase, the error
may not be because of rows/values. In such case, correct value of
error_index should be 0. Once correct value if fetched, assign it to
Sql_condition::error_index when the object is created during error/warning.
This error_index variable is returned when ERROR_INDEX is used in
GET DIAGNOSTICS.
</pre>
</div>
</content>
</entry>
<entry>
<title>merge 10.5 to 10.6</title>
<updated>2021-07-16T20:12:09+00:00</updated>
<author>
<name>Vladislav Vaintroub</name>
<email>wlad@mariadb.com</email>
</author>
<published>2021-07-16T20:12:09+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=e7f4daf88c4348bb018d04d298b104617554f310'/>
<id>e7f4daf88c4348bb018d04d298b104617554f310</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-21916: COM_STMT_BULK_EXECUTE with RETURNING insert wrong values</title>
<updated>2021-07-15T14:28:13+00:00</updated>
<author>
<name>Oleksandr Byelkin</name>
<email>sanja@mariadb.com</email>
</author>
<published>2020-06-22T16:21:21+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=a7d880f0b095939118594ecbeba953959ae8e351'/>
<id>a7d880f0b095939118594ecbeba953959ae8e351</id>
<content type='text'>
The problem is that array binding uses net buffer to read parameters for each
execution while each execiting with RETURNING write in the same buffer.

Solution is to allocate new net buffer to avoid changing buffer we are reading
from.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The problem is that array binding uses net buffer to read parameters for each
execution while each execiting with RETURNING write in the same buffer.

Solution is to allocate new net buffer to avoid changing buffer we are reading
from.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added ErrConvString.lex_cstring() to simplify code</title>
<updated>2021-05-19T20:27:29+00:00</updated>
<author>
<name>Monty</name>
<email>monty@mariadb.org</email>
</author>
<published>2020-08-14T17:22:43+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=b3bc02f923f6002e6a5bd6446b80575292e1b0c7'/>
<id>b3bc02f923f6002e6a5bd6446b80575292e1b0c7</id>
<content type='text'>
This allows us to use String::append() without using strlen().

The changes to the ErrConvString class where done by Alexander Barkov
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows us to use String::append() without using strlen().

The changes to the ErrConvString class where done by Alexander Barkov
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-21612 - remove COM_MULTI from server and C/C</title>
<updated>2020-07-14T09:16:24+00:00</updated>
<author>
<name>Vladislav Vaintroub</name>
<email>wlad@mariadb.com</email>
</author>
<published>2020-07-08T16:31:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=b0d2a59d9ab6e68461ba01becd791e1ab6e8ae27'/>
<id>b0d2a59d9ab6e68461ba01becd791e1ab6e8ae27</id>
<content type='text'>
The COM_MULTI did not take off. No connector is using it.
Remove related code from server, and client.
If anything it is a step simplification of already-bloated
dispatch_command(), and related code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The COM_MULTI did not take off. No connector is using it.
Remove related code from server, and client.
If anything it is a step simplification of already-bloated
dispatch_command(), and related code.
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-22043 Special character leads to assertion in my_wc_to_printable_generic on 10.5.2 (debug)</title>
<updated>2020-05-09T12:01:30+00:00</updated>
<author>
<name>Alexander Barkov</name>
<email>bar@mariadb.com</email>
</author>
<published>2020-05-07T15:20:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=cfe5ee90c8e4b9dfa98a41fcd299197a59261be7'/>
<id>cfe5ee90c8e4b9dfa98a41fcd299197a59261be7</id>
<content type='text'>
The code did not take into account that:
- U+005C (backslash) can occupy more than mbminlen characters (e.g. in sjis)
- Some character sets do not have a code for U+005C (e.g. swe7)

Adding a new function my_wc_to_printable into MY_CHARSET_HANDLER to
cover all special cases easier.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code did not take into account that:
- U+005C (backslash) can occupy more than mbminlen characters (e.g. in sjis)
- Some character sets do not have a code for U+005C (e.g. swe7)

Adding a new function my_wc_to_printable into MY_CHARSET_HANDLER to
cover all special cases easier.
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-21824 Crash in convert_error_message</title>
<updated>2020-03-16T10:43:30+00:00</updated>
<author>
<name>Vladislav Vaintroub</name>
<email>wlad@mariadb.com</email>
</author>
<published>2020-03-16T10:43:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=56402e84b5ba242214ff4d3c4a647413cbe60ff3'/>
<id>56402e84b5ba242214ff4d3c4a647413cbe60ff3</id>
<content type='text'>
restore check for client charset_info == NULL, which was previously
removed in MDEV-8844
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
restore check for client charset_info == NULL, which was previously
removed in MDEV-8844
</pre>
</div>
</content>
</entry>
<entry>
<title>perfschema memory related instrumentation changes</title>
<updated>2020-03-10T18:24:22+00:00</updated>
<author>
<name>Sergei Golubchik</name>
<email>serg@mariadb.org</email>
</author>
<published>2020-01-29T12:50:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=7c58e97bf6f80a251046c5b3e7bce826fe058bd6'/>
<id>7c58e97bf6f80a251046c5b3e7bce826fe058bd6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-8844 Unreadable control characters printed as is in warnings</title>
<updated>2019-12-06T14:51:05+00:00</updated>
<author>
<name>Alexander Barkov</name>
<email>bar@mariadb.com</email>
</author>
<published>2019-12-06T14:51:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=3c6065a270f547d160e11bbcaa653930ec5ff90f'/>
<id>3c6065a270f547d160e11bbcaa653930ec5ff90f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-18553: MDEV-16327 pre-requisits part 2: uniform of LIMIT/OFFSET handling</title>
<updated>2019-10-13T07:40:41+00:00</updated>
<author>
<name>Oleksandr Byelkin</name>
<email>sanja@mariadb.com</email>
</author>
<published>2019-10-11T10:26:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=1ae02f0e0d28bfca037ec35c4fda5b01c853b09f'/>
<id>1ae02f0e0d28bfca037ec35c4fda5b01c853b09f</id>
<content type='text'>
Now both offset and limit are stored and do not chenged during execution
(offset is decreased during processing in versions before 10.5).

(Big part of this changes made by Monty)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now both offset and limit are stored and do not chenged during execution
(offset is decreased during processing in versions before 10.5).

(Big part of this changes made by Monty)
</pre>
</div>
</content>
</entry>
</feed>
