Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6610 closed defect (fixed)

destId parameter error on Mozilla Firefox while Storing encrypted data with Google Gears using dojox.sql.ENCRYPT

Reported by: guest Owned by: Tom Trenka
Priority: high Milestone: 1.2
Component: Dojox Version: 1.0
Keywords: Cc:
Blocked By: Blocking:


I have Google Gears installed on my machine and trying to store data locally using dojox.sql.ENCRYPT.

I have created CUSTOMERS table and trying to insert data in encrypted format using dojox.sql as follows

var password = "foobar";

dojox.sql("INSERT INTO CUSTOMERS VALUES (?, ?, ENCRYPT(?))", "Neuberg", "Brad", "555-34-8962", password, function(results, error, errorMsg){ if(error){ alert(errorMsg); return; } });

I am using dojo 1.0 version and above code always throws error in Mozilla Firefox as follows

"SQL Exception: The destId parameter must be an int."

However above same code runs without any Issues in IE.

If I modify dojox\_sql\_crypto.js with following change then above error message goes away in Mozilla Firefox

Existing Code

this._manager.sendMessage(msg, workerID);

New Change

this._manager.sendMessage(msg, parseInt(workerID));

Following are details of various versions on my computer

dojo :1.0 version

Google Gears : version

Mozilla Firefox: version

Internet Explorer: 7.0.5730.13

Change History (3)

comment:1 Changed 14 years ago by Adam Peller

Owner: changed from Adam Peller to Tom Trenka

comment:2 Changed 14 years ago by Tom Trenka

Resolution: fixed
Status: newclosed

(In [13648]) Fixes #6610. !strict.

comment:3 Changed 14 years ago by bill

Milestone: 1.2

marking tickets closed in the last three months w/blank milestone to milestone 1.2.

Note: See TracTickets for help on using tickets.