Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement batch runner for postgresql. #193

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Dec 9, 2015

  1. Implement batch runner for postgresql.

    In general it's almost copy/paste of MySqlBatchRunner class.
    Slight modifications:
    - changed queries to postgresql syntax
      UPDATE <what to update>
      SET <expression>
      FROM ( <generated select query> )
    - slighly modified regular expression with self updates.
      ColumAlias is optional group now. Alias is not generated every time.
    - When in TransactionScope it means we have open transaction, really, it is.
      Postgre treats such transaction as distributed, that's why opening new transaction fails.
    raol committed Dec 9, 2015
    Configuration menu
    Copy the full SHA
    22385b1 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2016

  1. Remove detecting outside transaction.

    - Previously we detected outside transactions using System.Transaction, but recently
      we overcame the issue using specific configuration of the PgSql devart provider.
      It's redundant code now and should be removed to make everything consistent
      with the rest of the code.
    raol committed Mar 4, 2016
    Configuration menu
    Copy the full SHA
    8601958 View commit details
    Browse the repository at this point in the history
  2. Put schema and table name in quotes

    - Table and column names that are not lowercase are caused the error. So it's necessary
      to put them in quotes.
      More info here
      http://www.postgresql.org/docs/current/interactive/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS
    raol committed Mar 4, 2016
    Configuration menu
    Copy the full SHA
    f43974e View commit details
    Browse the repository at this point in the history