Coder Social home page Coder Social logo

dbix-class-parseerror's Introduction

Hi there ๐Ÿ‘‹

I am a software engineer with Bachelor's degree in Computer Science. I've already worked on applications in different data domains, and with main experience in web development, QA and operations.

I am a contributor of open source software projects.

More about me at http://wallace.reis.me/

dbix-class-parseerror's People

Contributors

ovid avatar wreis avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ovid clayne pplu

dbix-class-parseerror's Issues

Can't parse errors when using DBIx::Class quote_char

When using Schema->connect($dsn, $user, $pass, { quote_char => '`' }
(https://metacpan.org/pod/DBIx::Class::Storage::DBI#quote_char), DBIx::Class::ParseError is not capable of parsing the exception:

For a duplicate entry I get:

Parsing error string failed at local/lib/perl5/DBIx/Class/ParseError/Parser.pm line 251.
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Duplicate entry 'table' for key 'name' [for Statement "INSERT INTO `table` ( `name`) VALUES ( ? )" with ParamValues: 0='value1'] at lib/Module.pm line 91

When I connect without quote_char, DBIx::Class::ParseError can parse the exceptions.

ParseError dies when it can't parse an error

Hi,

I was wondering what you would think about changing a bit the behavior of this module. When the error from DBI cannot be parsed, it throws an exception. https://github.com/wreis/DBIx-Class-ParseError/blob/master/lib/DBIx/Class/ParseError/Parser.pm#L250.

Since the module is already used in exception handlers, It would be nice that it returned an exception object even if it couldn't parse the message, making the exception handling code simpler.

Would you be interested in a patch in this direction?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.