Bugs item #3163428, was opened at 2011-01-21 16:52 Message generated for change (Tracker Item Submitted) made by algernon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=512945&aid=3163428&group_id=65979
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Gergely Nagy (algernon) Assigned to: Nobody/Anonymous (nobody) Summary: [PATCH] Allow setting the mysql port as string or int Initial Comment: The MySQL driver only accepts a port set via dbi_conn_set_option_numeric, while other drivers (namely Postgres) accept both string or numeric ports. This inconsistency can lead to problems, when one tries to set the SQL server's port from a program built with libdbi: one driver expects a numeric port, another a string, a third accepts either. Setting either overrides the other, thus, the program would need to decide based on the database driver, which is unfortunate. If we only set one, for example the string option, dbi_conn_get_option_numeric will return 0, and thus breaking the connection attempt. It would be better, if all the drivers worked like the Postgres driver, and used whichever is set. A patch by Viktor Tusa for the MySQL driver is attached. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=512945&aid=3163428&group_id=65979 ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Libdbi-drivers-devel mailing list Libdbi-drivers-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel