Cassandra Oledb Provider Sample crashes

More
7 years 8 months ago #10983 by eugeneng
HI, recently I downloaded and installed the trial version of Cassandra Oledb Provider. when I try to run the C# sample, it crashes at :

file : 02_SimpleQuery.cs
line 24
public static int Sample02_SimpleQuery(OleDbConnection conn)
{
ConsoleWriteSampleHeader("[Sample 2.1] Getting records from database using OleDbDataReader.");
String lastStmt = "";

try
{
// Read records from pgnp_samples.contact table.
OleDbCommand cmd = conn.CreateCommand();
cmd.CommandText = lastStmt = "SELECT \"FirstName\",\"LastName\",active,\"HireDate\" FROM \"CasoTestEmployee\" LIMIT 5;";
[color=#FF4040:1bhf9q42] OleDbDataReader reader = cmd.ExecuteReader(); <
Crashes here!![/color:1bhf9q42]


with System Access Violation exception: {"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."}

and I received similar error when I tried to use SSIS to import 10 rows of record into Cassandra database.

is this the limitation of the trial version?

Please Log in or Create an account to join the conversation.

More
7 years 8 months ago #10987 by Moderator
No, probably not. What is Cassandra version you use?

Please Log in or Create an account to join the conversation.

More
7 years 8 months ago #11038 by eugeneng
[cqlsh 4.1.0 | Cassandra 2.0.4 | CQL spec 3.1.1 | Thrift protocol 19.39.0]

Please Log in or Create an account to join the conversation.

More
7 years 8 months ago #11088 by Moderator
We have fixed the Cassandra provider and updated C# Samples ( www.pgoledb.com/index.php?option ... &Itemid=68 )

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum