Detectar si no se ha cambiado ningun registro (No existe NIS?)
This commit is contained in:
parent
177b16b5c4
commit
4840f5dc7e
|
@ -99,13 +99,13 @@ namespace LectorVerdnatura
|
|||
return retorno;
|
||||
}//function
|
||||
|
||||
public void ejecutarsql(String Sql)
|
||||
public int ejecutarsql(String Sql)
|
||||
{
|
||||
if (!hayconexion) return;
|
||||
if (!hayconexion) return -1;
|
||||
//try
|
||||
//{
|
||||
OdbcCommand cmd = new OdbcCommand(Sql, conn);
|
||||
cmd.ExecuteNonQuery();
|
||||
return cmd.ExecuteNonQuery();
|
||||
//}
|
||||
//catch (OdbcException ex) when (ex.Errors[0].NativeError == 1062)
|
||||
//{
|
||||
|
|
Reference in New Issue