Difference between revisions of "PostgreSQL Adapter Project - Code Review 1 Changes"
Line 1: | Line 1: | ||
+ | {{Admon/obsolete}} | ||
+ | |||
[[category: NexJ Express PostgreSQL]][[category: NexJ Express Development]] [[category: NexJ Express]] | [[category: NexJ Express PostgreSQL]][[category: NexJ Express Development]] [[category: NexJ Express]] | ||
Latest revision as of 19:32, 26 January 2014
Contents
General Research
Task | Out Come |
---|---|
Can postgreSQL be configured to have the where clause use case insensitive compare for string values? i.e. (select 'Q' = 'q' => should return true)
|
http://www.postgresql.org/docs/8.4/static/citext.html |
Add UUID generation to x64 versions | UUID generation depends on OSSP-UUID which is not yet ported to x64. |
Does extract(epoch from value) return milliseconds?
|
YES |
What encoding (UTF-8 and/or UTF-16) does PostgreSQL use for unicode? Can this be configured per column? | UTF-8 |
How is a repeatable read with exclusive lock implemented? | It is not supported. |
Does timestamp'value', handle java.sql.timestamp.toString()? | YES |
Does to_timestamp support milliseconds? | YES
Precision is up to microseconds(10^-6) http://www.postgresql.org/docs/7.4/static/functions-datetime.html |
Does postgreSQL have constants for boolean values? | YES
TRUE and FALSE (they are case insensitive) |
Does posrgreSQL jdbc driver support returning metadata in UpperCase | NO
Since database objects are case sensitive, returning UpperCase would make for corrupt data May be consider changing SQLManager to enforce all database object names to be lowercase |
Does renaming a column cause error if a view depends on it? | NO
View' is updated with to use the new column name |
Does lo.sql unlink large objects when table is truncated? | NO |
Classes
PostgreSQLAdapter
Task | Status | UnitTest |
---|---|---|
* Extending CaseInsensitiveSQLAdapter | DONE | DONE |
Implement setQueryTime with Timer object
|
DONE | DONE |
Refactor escaping literals
|
DONE | DONE |
appendMatchExpression
|
DONE | DONE |
indexNameMatches
|
DONE | DONE |
appendSuffixHint
|
DONE | DONE |
appendLiteral
|
DONE | DONE |
getBind
|
DONE | DONE |
isLiteral
|
DONE | DONE |
appendTypeConversion
|
DONE | DONE |
isUnicode
|
DONE | DONE |
s_bindFactoryArray[Primitive.BINARY_ORDINAL]
|
DONE | |
DUPLICATE_KEY_NAME_PATTERN
|
DONE | DONE |
s_bindFactoryArray
|
DONE | DONE |
PostgreSQLSchemaManager
Task | Status | UnitTest |
---|---|---|
* Extending CaseInsensitiveSQLSchemaManager | DONE | DONE |
Override setCustomDatabaseProperties
|
DONE | DONE |
dropTable
|
DONE | DONE |
getGUIDExpr
|
||
remove trigger and procedure suffix $uid | DONE | DONE |
getDefaultLongspace, getDefaultTablespace, getDefaultIndexspace
|
||
getPrimaryKeys
|
DONE | DONE |
generateIndexName
|
DONE' | DONE |
appendColumnType
|
DONE | DONE |
Refactor creating and deleting full-text search indexes
|
DONE | DONE |
Refactor checking for BLOB column to isBLOB | DONE | DONE |
Refactor checking for full-text search index on a column to getFullTextIndex | DONE | DONE |
alterColumn - use this logic
|
DONE | DONE |
renameColumn - use this logic for
|
DONE | DONE |
dropIndex
|
DONE | DONE |
appendColumnAlternation
|
DONE | |
renameTable
|
DONE | DONE |
deleteLargeObjects
|
DONE | DONE |
getIndexInfo
|
DONE | DONE |
Use toMetadataCase and toDatabaseCase instead of toLowerCase/toUpperCase | DONE | DONE |
Scripts
postgresql_create.sql
Task | Status | UnitTest |
---|---|---|
postgresql_setup.sql
Task | Status | UnitTest |
---|---|---|
Add comment to enable PREPARE TRANSACTION | DONE | DONE |
Use template field to set location of contrib folder
|
DONE | DONE |
Add template field to set location for tablespace, indexspace and longspace | DONE | DONE |
Add SQL to create tablespace, indexspace and longspace | DONE | DONE |
Move function creation to postgresql_create.sql |
postgresql_drop.sql
Task | Status | UnitTest |
---|---|---|
Add sql to drop custom functions |