Comments (3)
Looks like the offending code is around lines 1496-1499.
I changed the regex and it seems to work:
/SELECT[^\s\t](.?)[\s\t]+FROM[\s\t]+/is
Make sure there is a space character before and after FROM
from ora2pg.
*** /tmp/Ora2Pg.pm 2013-06-19 12:37:20.396867605 -0400
--- /usr/local/share/perl5/Ora2Pg.pm 2013-06-20 14:55:01.609265902 -0400
*** 1493,1502 ****
}
}
if (!$self->{preserve_case}) {
! if ($self->{views}{$view}{text} =~ /SELECT[^\s\t](.?)[^\s\t]FROM/is) {
my $clause = $1;
$clause =~ s/"([^"]+)"/"\L$1\E"/gs;
! $self->{views}{$view}{text} =~ s/SELECT[^\s\t](.?)[^\s\t]FROM/SELECT $clause FROM/is;
}
}
$sql_output .= ") AS " . $self->{views}{$view}{text} . ";\n\n";
--- 1493,1502 ----
}
}
if (!$self->{preserve_case}) {
! if ($self->{views}{$view}{text} =~ /SELECT[^\s\t](.?)[\s\t]+FROM[\s\t]+/is) {
my $clause = $1;
$clause =~ s/"([^"]+)"/"\L$1\E"/gs;
! $self->{views}{$view}{text} =~ s/SELECT[^\s\t](.?)[\s\t]+FROM[\s\t]+/SELECT $clause FROM /is;
}
}
$sql_output .= ") AS " . $self->{views}{$view}{text} . ";\n\n";
from ora2pg.
Thanks for the report, this issue have been fixed in commit 2a30eed.
Best regards,
from ora2pg.
Related Issues (20)
- Migrating From SQL Server to Postgres with Ora2pg Is very Slow HOT 1
- Request for sha256sum on downloads HOT 1
- Config option to override the NLS_TIMESTAMP_FORMAT or such encoding parameters used by Ora2pg HOT 1
- Invalid check constraint conversion to PostgreSQL format while exporting schema from Oracle HOT 1
- OUT OF MEMORY EVEN THOUGH SERVER HAS OVER 16GB FREE RAM HOT 2
- [ORACLE]Slow export of BLOB and CLOB from HOT 7
- Reading the ora2pg assessment report HOT 6
- Mysql to postgresql migration HOT 9
- ERROR : DBI::db=HASH(0x29c1784f2e8)->disconnect invalidates 1 active statement handle HOT 3
- Wrong argument "extra_param OPAQUE" in function with OUT arguments (regression in release 24.3) HOT 1
- Wrong change in translation of "is not null" clause (regression in release 24.3) HOT 1
- Extract data query errorring out HOT 6
- Oracle column aliases (after TRIM function) are syntactically incorrect due to small bug introduced in commit 66f4fc37 HOT 1
- Issue in migrating from SQL Server to CloudSQL Postgres HOT 4
- Foreign server always generated with default port HOT 3
- Export data with CLOB is too slow HOT 7
- Generated export_schema.ps1 contains bash if else HOT 1
- Problems trying to use new parameter PARTITION_BY_REFERENCE=duplicate
- Oracle to Postgresql migration - issue with SECURITY DEFINER
- Filenames created incorrectly when exporting using the COPY option and parameter RENAME_PARTITION=1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ora2pg.