Ver Mensaje Individual
  #8  
Antiguo 24-05-2012
franroju franroju is offline
Miembro
NULL
 
Registrado: ene 2012
Posts: 55
Reputación: 13
franroju Va por buen camino
Gente, copio error.

Primero me aparece lo siguiente:

"Source File not found: ZDbcMySqlUtils.pas"

Y si a ese error le pongo Cancelar o Ignorar me dice lo siguiente:

"Project Proyect1.exe raised exception class EZSQLException with message 'SQL error: You have an error in your sql syntax; check the manual that corresponds to your MySql server version for de right syntax to use near 'LIKE 'usuarios'' at line 1'. Process stopped... bla bla".

Será algún fallo de instalación de Zeos?

Repito el código para refrescar la memoria:

Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
var
     sql: string;
begin
  query.Close;
  query.SQL.Clear;
  sql := 'select * from usuarios where usuario = :usu  and contrasenia = :contra';
  query.SQL.Add(sql);
  query.ParamByName('usu').AsString:= edit1.Text;
  query.ParamByName('contra').AsString:= edit2.Text;
  query.Open;
end;

Gracias por responder, y espero solucionarlo (o que me ayuden a hacerlo, je)!
Responder Con Cita