Quantcast
Channel: dbschemareader Discussions Rss Feed
Viewing all articles
Browse latest Browse all 166

New Post: PostgreSQL problem

$
0
0
Thanks for your answer, you are totally right. I downloaded the source code to check if I could fix the problem and the error was happening in the TableDescription(string tableName) function. I took your advice about using Npgsql, I added the Npgsql referece and added this to my project:

<DbProviderFactories>
<add name="Npgsql Data Provider" invariant="Npgsql" description="Data Provider for PostgreSQL"type="Npgsql.NpgsqlFactory, Npgsql" /></DbProviderFactories>

but now I'm having another problem:

[NullReferenceException:]
Npgsql.NpgsqlSchema.GetMetaDataCollections() +223
Npgsql.NpgsqlConnection.GetSchema(String collectionName, String[] restrictions) +437
Npgsql.NpgsqlConnection.GetSchema(String collectionName) +46
DatabaseSchemaReader.SchemaReader.MetadataCollections(DbConnection connection) +44
DatabaseSchemaReader.SchemaReader.SchemaCollectionExists(DbConnection connection, String name) +72
DatabaseSchemaReader.SchemaReader.Users() +162
DatabaseSchemaReader.DatabaseReader.AllUsers() +119
DatabaseSchemaReader.DatabaseReader.ReadAll() +74

have you seen something like this before? because it seems like Npgsql is getting a null value.

Devart read the users without problem but Npgslq doesn't... and I'm usign the same DataBase.

Thanks for your help.

Viewing all articles
Browse latest Browse all 166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>