Hello,
When I attempt to execute an SQL statement, I get a
java.net.UnknownHostException error. The events that lead up to this:
java.net.Socket.<init>
java.net.InetAddress.getAllByName
java.net.InetAddress.getAllByNameImpl
java.net.InetAddress.lookupHostByName
java.net.UnknownHostException
The code that generates this is pretty much like the examples given on
the jiql webpage:
String loc = "jdbc:jiql:
https://test.appspot.com/jiqlservlet"; //this
is not the actual address I connect to
Properties props = new Properties();
props.put("user","admin");
props.put("password", "jiql");
Class c = Class.forName("org.jiql.jdbc.Driver");
Driver driver = (Driver)c.newInstance();
Connection conn = null;
conn = driver.connect(loc,props);
Toast.makeText(getApplicationContext(), "Connected to
Server",Toast.LENGTH_SHORT).show();
Statement Stmt = conn.createStatement();
Stmt.execute("INSERT into users (username,password,email) values
('test','test','test'");
conn.close();
thanks!