Posted to tcl by DamonC at Tue Jan 25 01:40:45 GMT 2011view raw
- LD_LIBRARY_PATH=".:/usr/local/lib:" PATH=".:/usr/local/lib:/usr/local/bin:/usr/bin:/bin:/usr/games" TCLLIBPATH="." TDBCMYSQL_LIBRARY=`echo ./library` TCL_LIBRARY=`echo /usr/local/src/tcl-cvs/library` TDBC_LIBRARY=`echo /usr/local/src/TDBC.zip/tdbc/library` /usr/local/bin/tclsh8.6 `echo ./tests/all.tcl` \
- -load "package ifneeded tdbc::mysql 1.0b16 \
- [list source `echo ./library/tdbcmysql.tcl`]\;[list load `echo libtdbcmysql1.0b16.so` tdbcmysql]"
- Tests running in interp: /usr/local/bin/tclsh8.6
- Tests located in: /usr/local/src/TDBC.zip/tdbcmysql/tests
- Tests running in: /usr/local/src/TDBC.zip/tdbcmysql
- Temporary files stored in /usr/local/src/TDBC.zip/tdbcmysql
- Test files run in separate interpreters
- Running tests that match: *
- Skipping test files that match: l.*.test
- Only running test files that match: *.test
- Tests began at Tue Jan 25 01:33:16 UTC 2011
- tdbcmysql.test
- ==== tdbc::mysql-1.6 create a connection, bad port FAILED
- ==== Contents of test case:
- tdbc::mysql::connection create db -port 999999999999
- ---- Result was:
- integer value too large to represent as non-long integer
- ---- Result should have been (exact matching):
- integer value too large to represent
- ==== tdbc::mysql-1.6 FAILED
- ==== tdbc::mysql-24.4 Foreign keys - list all FAILED
- ==== Contents of test case:
- set result {}
- set wanted {fk_b1 {} fk_b2 {} fk_c1 {} fk_c2 {} fk_cpair {}}
- foreach row [::db foreignkeys] {
- if {[dict exists $wanted [dict get $row foreignConstraintName]]} {
- dict set result [dict get $row foreignConstraintName] [dict get $row ordinalPosition] [list [dict get $row foreignTable] [dict get $row foreignColumn] [dict get $row primaryTable] [dict get $row primaryColumn]]
- }
- }
- lsort -index 0 -stride 2 $result
- ---- Test generated error; Return code was: 1
- ---- Return code should have been one of: 0 2
- ---- errorInfo: Unknown table 'REFERENTIAL_CONSTRAINTS' in information_schema
- while executing
- "my statementCreate Stmt::[incr statementSeq] [self] $sqlcode"
- (class "::tdbc::connection" method "prepare" line 2)
- invoked from within
- "my prepare "
- SELECT rc.CONSTRAINT_SCHEMA AS \"foreignConstraintSchema\",
- rc.CONSTRAINT_NAME AS \"foreignConstraintName\",
- ..."
- (class "::tdbc::mysql::connection" method "BuildForeignKeysStatement" line 11)
- invoked from within
- "my BuildForeignKeysStatement"
- (class "::tdbc::connection" method "foreignkeys" line 33)
- invoked from within
- "::db foreignkeys"
- ("uplevel" body line 4)
- invoked from within
- "uplevel 1 $script"
- ---- errorCode: TDBC SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION 42S02 MYSQL 1109
- ==== tdbc::mysql-24.4 FAILED
- ==== tdbc::mysql-24.5 Foreign keys - -foreign FAILED
- ==== Contents of test case:
- set result {}
- set wanted {fk_b1 {} fk_b2 {} fk_c1 {} fk_c2 {} fk_cpair {}}
- foreach row [::db foreignkeys -foreign c] {
- if {[dict exists $wanted [dict get $row foreignConstraintName]]} {
- dict set result [dict get $row foreignConstraintName] [dict get $row ordinalPosition] [list [dict get $row foreignTable] [dict get $row foreignColumn] [dict get $row primaryTable] [dict get $row primaryColumn]]
- }
- }
- lsort -index 0 -stride 2 $result
- ---- Test generated error; Return code was: 1
- ---- Return code should have been one of: 0 2
- ---- errorInfo: Unknown table 'REFERENTIAL_CONSTRAINTS' in information_schema
- while executing
- "my statementCreate Stmt::[incr statementSeq] [self] $sqlcode"
- (class "::tdbc::connection" method "prepare" line 2)
- invoked from within
- "my prepare "
- SELECT rc.CONSTRAINT_SCHEMA AS \"foreignConstraintSchema\",
- rc.CONSTRAINT_NAME AS \"foreignConstraintName\",
- ..."
- (class "::tdbc::mysql::connection" method "BuildForeignKeysStatement" line 11)
- invoked from within
- "my BuildForeignKeysStatement"
- (class "::tdbc::connection" method "foreignkeys" line 33)
- invoked from within
- "::db foreignkeys -foreign c"
- ("uplevel" body line 4)
- invoked from within
- "uplevel 1 $script"
- ---- errorCode: TDBC SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION 42S02 MYSQL 1109
- ==== tdbc::mysql-24.5 FAILED
- ==== tdbc::mysql-24.6 Foreign keys - -primary FAILED
- ==== Contents of test case:
- set result {}
- set wanted {fk_b1 {} fk_b2 {} fk_c1 {} fk_c2 {} fk_cpair {}}
- foreach row [::db foreignkeys -primary a] {
- if {[dict exists $wanted [dict get $row foreignConstraintName]]} {
- dict set result [dict get $row foreignConstraintName] [dict get $row ordinalPosition] [list [dict get $row foreignTable] [dict get $row foreignColumn] [dict get $row primaryTable] [dict get $row primaryColumn]]
- }
- }
- lsort -index 0 -stride 2 $result
- ---- Test generated error; Return code was: 1
- ---- Return code should have been one of: 0 2
- ---- errorInfo: Unknown table 'REFERENTIAL_CONSTRAINTS' in information_schema
- while executing
- "my statementCreate Stmt::[incr statementSeq] [self] $sqlcode"
- (class "::tdbc::connection" method "prepare" line 2)
- invoked from within
- "my prepare "
- SELECT rc.CONSTRAINT_SCHEMA AS \"foreignConstraintSchema\",
- rc.CONSTRAINT_NAME AS \"foreignConstraintName\",
- ..."
- (class "::tdbc::mysql::connection" method "BuildForeignKeysStatement" line 11)
- invoked from within
- "my BuildForeignKeysStatement"
- (class "::tdbc::connection" method "foreignkeys" line 33)
- invoked from within
- "::db foreignkeys -primary a"
- ("uplevel" body line 4)
- invoked from within
- "uplevel 1 $script"
- ---- errorCode: TDBC SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION 42S02 MYSQL 1109
- ==== tdbc::mysql-24.6 FAILED
- ==== tdbc::mysql-24.7 Foreign keys - -foreign and -primary FAILED
- ==== Contents of test case:
- set result {}
- set wanted {fk_b1 {} fk_b2 {} fk_c1 {} fk_c2 {} fk_cpair {}}
- foreach row [::db foreignkeys -foreign c -primary b] {
- if {[dict exists $wanted [dict get $row foreignConstraintName]]} {
- dict set result [dict get $row foreignConstraintName] [dict get $row ordinalPosition] [list [dict get $row foreignTable] [dict get $row foreignColumn] [dict get $row primaryTable] [dict get $row primaryColumn]]
- }
- }
- lsort -index 0 -stride 2 $result
- ---- Test generated error; Return code was: 1
- ---- Return code should have been one of: 0 2
- ---- errorInfo: Unknown table 'REFERENTIAL_CONSTRAINTS' in information_schema
- while executing
- "my statementCreate Stmt::[incr statementSeq] [self] $sqlcode"
- (class "::tdbc::connection" method "prepare" line 2)
- invoked from within
- "my prepare "
- SELECT rc.CONSTRAINT_SCHEMA AS \"foreignConstraintSchema\",
- rc.CONSTRAINT_NAME AS \"foreignConstraintName\",
- ..."
- (class "::tdbc::mysql::connection" method "BuildForeignKeysStatement" line 11)
- invoked from within
- "my BuildForeignKeysStatement"
- (class "::tdbc::connection" method "foreignkeys" line 33)
- invoked from within
- "::db foreignkeys -foreign c -primary b"
- ("uplevel" body line 4)
- invoked from within
- "uplevel 1 $script"
- ---- errorCode: TDBC SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION 42S02 MYSQL 1109
- ==== tdbc::mysql-24.7 FAILED
- Tests ended at Tue Jan 25 01:33:16 UTC 2011
- all.tcl: Total 176 Passed 171 Skipped 0 Failed 5
- Sourced 1 Test Files.
- Files with failing tests: tdbcmysql.test