[MDEV-6311] Add errors on CREATE SERVER Created: 2014-06-06  Updated: 2014-12-04  Resolved: 2014-12-04

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Federated
Fix Version/s: 10.1.2

Type: Task Priority: Major
Reporter: Federico Razzoli Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: create_server, federatedx, spider


 Description   

All CREATE SERVER clauses are optional. Default values are:

  • HOST: ''
  • PORT: 0
  • SOCKET: ''

To have a usable server, we must define:
(host AND port) OR socket

No storage engine returns a clear error when trying to connect to an unusable server. And with SPIDER, bad things happen.

Could MariaDB return an error/warning/note, when not enough data or too many data are provided?



 Comments   
Comment by Sergei Golubchik [ 2014-11-16 ]

I'd expect that PORT can take a default value (3306 for "mysql" wrapper), so only HOST or SOCKET must be required. Unless there are reasonable defaults for them too, but I cannot imagine what could they be.

Comment by Sergei Golubchik [ 2014-11-16 ]

I'll do it in 10.1, it breaks few tests in 10.0 and might break existing applications too

Generated at Thu Feb 08 07:10:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.