Details
Description
--ps-protocol do not test:
EXPLAIN
ANALYSE
CALL
and so on
List of what it test is here:
const char *ps_re_str =
|
"^("
|
"[[:space:]]*REPLACE[[:space:]]|"
|
"[[:space:]]*INSERT[[:space:]]|"
|
"[[:space:]]*UPDATE[[:space:]]|"
|
"[[:space:]]*DELETE[[:space:]]|"
|
"[[:space:]]*SELECT[[:space:]]|"
|
"[[:space:]]*CREATE[[:space:]]+TABLE[[:space:]]|"
|
"[[:space:]]*DO[[:space:]]|"
|
"[[:space:]]*SET[[:space:]]+OPTION[[:space:]]|"
|
"[[:space:]]*DELETE[[:space:]]+MULTI[[:space:]]|"
|
"[[:space:]]*UPDATE[[:space:]]+MULTI[[:space:]]|"
|
"[[:space:]]*INSERT[[:space:]]+SELECT[[:space:]])";
|
May be it has sense prohibit queries which has no sens, but allow all.
Attachments
Issue Links
- blocks
-
MDEV-17302 Add support for ALTER USER command in prepared statement.
-
- Closed
-
- includes
-
MDEV-17671 main.view fails in bb-10.4-ps branch in --ps
-
- Closed
-
-
MDEV-17672 main.analyze_stmt fails in bb-10.4-ps branch in --ps
-
- Closed
-
- is blocked by
-
MDEV-17673 main.cte_recursive fails in bb-10.4-ps branch in --ps
-
- Closed
-
- relates to
-
MDEV-18974 Result difference with --embedded --ps-protocol
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
--ps-protocol do not test:
EXPLAIN ANALYSE CALL and so on |
--ps-protocol do not test:
EXPLAIN ANALYSE CALL and so on List of what it test is here: {code} const char *ps_re_str = "^(" "[[:space:]]*REPLACE[[:space:]]|" "[[:space:]]*INSERT[[:space:]]|" "[[:space:]]*UPDATE[[:space:]]|" "[[:space:]]*DELETE[[:space:]]|" "[[:space:]]*SELECT[[:space:]]|" "[[:space:]]*CREATE[[:space:]]+TABLE[[:space:]]|" "[[:space:]]*DO[[:space:]]|" "[[:space:]]*SET[[:space:]]+OPTION[[:space:]]|" "[[:space:]]*DELETE[[:space:]]+MULTI[[:space:]]|" "[[:space:]]*UPDATE[[:space:]]+MULTI[[:space:]]|" "[[:space:]]*INSERT[[:space:]]+SELECT[[:space:]])"; {code} May be it has sense prohibit queries which has no sens, but allow all. |
Status | Open [ 1 ] | In Progress [ 3 ] |
Attachment | MDEV-15945.diff [ 45523 ] |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.3 [ 22126 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Sergei Golubchik [ serg ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Link |
This issue is blocked by |
Link |
This issue is blocked by |
Link |
This issue is blocked by |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] |
Link |
This issue blocks |
Summary | --ps-protocol do not test some queries | --ps-protocol does not test some queries |
Priority | Major [ 3 ] | Critical [ 2 ] |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.0 [ 16000 ] |
Link |
This issue includes |
Link |
This issue is blocked by |
Link |
This issue includes |
Link |
This issue is blocked by |
Fix Version/s | 10.1.39 [ 23305 ] | |
Fix Version/s | 10.2.23 [ 23307 ] | |
Fix Version/s | 10.3.14 [ 23216 ] | |
Fix Version/s | 10.4.4 [ 23310 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Link |
This issue relates to |
Workflow | MariaDB v3 [ 86675 ] | MariaDB v4 [ 154197 ] |
Problems:
There are some statements which do not report error but do not work in PS (see attached diff)
Even version comments hide command from detection.
main.create_or_replace crash server on CREATE TABLE with an error (there are bug reports like this).