Posted by À±°æ±¸ on July 18, 1997 at 22:16:55:
In Reply to: SQLException : Unsupported mSQL version posted by ¹ÚÁ¾¿í on July 18, 1997 at 21:25:09:
¸»±×·¡µµ mSQL ¹öÀüÀÌ ´Þ¶óÁ³³ªº¸³×¿ä.
¾÷±×·¹À̵åÇؼ ±×·±°¡¿ä?
mSQL-JDBC 1.0a2 ¹öÀüÀÇ src µð·ºÅ丮¿¡ º¸¸é
MsqlConnection.java ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù.
±× Áß ¹®Á¦°¡ µÇ´Â ºÎºÐÀº ÀÌ ºÎºÐÀÔ´Ï´Ù.
// Check for mSQL version
if( tmp.startsWith("0:22:") ) {
version = 2; // version 2.0
}
else if( tmp.startsWith("0:6:") ) {
version = 1; // version 1.0.x
}
else {
throw new SQLException("Unsupported mSQL version.");
}