Bug #34860 --compat for non-mysql servers should also enable --skip-opt for compatibility

Submitted: 26 Feb 2008 20:37 Modified: 26 Feb 2008 21:41
Reporter: Tobias Asplund Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S4 (Feature request)
Version:5.1.23 OS:Any
Assigned to: CPU Architecture:Any

[26 Feb 2008 20:37] Tobias Asplund
Description:
mysqldump has the option to make output compatible to import into other RDBMSs.

The problem here is that the --opt flag that is enabled by default since 4.1 actually uses multi-line inserts that aren't compatible with some of them.

How to repeat:
mysqldump --compat=mssql

Suggested fix:
We could probably fix this by using --skip-opt for compat modes with databases that doesn't support that syntax.
[26 Feb 2008 21:41] Sveta Smirnova
Thank you for the report.

According to http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_compatible: "This option does not guarantee compatibility with other servers. It only enables those SQL mode values that are currently available for making dump output more compatible." and http://dev.mysql.com/doc/refman/5.1/en/server-sql-mode.html: "MSSQL Equivalent to PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS, NO_TABLE_OPTIONS, NO_FIELD_OPTIONS." this is not a bug. So I reclassified report to feature request.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.