File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -766,6 +766,8 @@ abstract class PostgresAdapterBase implements DbAdapter {
766766 if ( attr !== undefined && this . hierarchy . isMixin ( attr . attributeOf ) ) {
767767 const newKey = `${ attr . attributeOf } .${ attr . name } ` as keyof Projection < T >
768768 res [ newKey ] = escape ( projection [ key ] )
769+ } else {
770+ ; ( res as any ) [ escape ( key ) ] = escape ( projection [ key ] )
769771 }
770772 } catch ( err : any ) {
771773 // ignore, if
Original file line number Diff line number Diff line change @@ -661,7 +661,7 @@ export interface JoinProps {
661661export function escape < T > ( str : T ) : T {
662662 if ( typeof str === 'string' ) {
663663 // Remove all characters except a-z, A-Z, 0-9 and _ .
664- return str . replace ( / [ ^ a - z A - Z 0 - 9 _ . ] / g, '' ) as T
664+ return str . replace ( / [ ^ a - z A - Z 0 - 9 _ . : ] / g, '' ) as T
665665 }
666666 return str
667667}
You can’t perform that action at this time.
0 commit comments