Zdravim,

posilam do MySQL 5.0 prepared statementy pres JDBC Driver Connector/J 5.x :

ps = conn.prepareStatement("INSERT INTO table SET txt = ?");
...

Ale Connector mi z toho udìlá normalni textove SQL prikazy --- 
      143 Query       INSERT INTO table SET txt = 'aXa6'
      143 Query       INSERT INTO table SET txt = 'aXa7'
      143 Query       INSERT INTO table SET txt = 'aXa8
...
--- aèkoliv MySQL prepared statements umi - podle dokumentace i v JDBC:

MySQL 5.0 provides support for server-side prepared statements. This support 
takes advantage of the efficient client/server binary protocol implemented 
in MySQL 4.1, provided that you use an appropriate client programming 
interface. Candidate interfaces include the MySQL C API client library (for 
C programs), MySQL Connector/J (for Java programs), and MySQL Connector/NET.

Netusite nekdo, jestli je neco treba nastavit u JDBC spojeni nebo tak neco? 
Ci jak donutim ten driver pouzivat to jako prepared...

Diky, Ondra 



Odpovedet emailem