dynamobi/dynamobi — Issue #168: [LDB-154] creating foreign server with lenient set to no and mapped to yes is allowed
Author: dynamobi-build
Created: 2011-12-30 02:18:18+00:00
State: closed
Labels: Flatfile, LDB

[reporter="elin", created="Wed, 7 Feb 2007 18:55:11 -0500 (GMT-05:00)"]
This shouldn't be allowed, but we don't get an error until you try and sample a table from the server created.

0: jdbc:luciddb:rmi://localhost> create server mapped_no_lenient

. . . . . . . . . . . . . . . .> foreign data wrapper "FLAT FILE"

. . . . . . . . . . . . . . . .> options(

. . . . . . . . . . . . . . . .> directory '/home/elin/installable/NM-Bugbash/testdir/flatfiles',

. . . . . . . . . . . . . . . .> file_extension 'csv',

. . . . . . . . . . . . . . . .> lenient 'no',

. . . . . . . . . . . . . . . .> mapped 'yes'

. . . . . . . . . . . . . . . .> );

No rows affected (0.069 seconds)

0: jdbc:luciddb:rmi://localhost> select * from mapped_no_lenient.bcp."csv_with_blanks";

Error: FennelResource.en_US.flatfileMappedRequiresLenient() (state=,code=0)

0: jdbc:luciddb:rmi://localhost>